From b5f7f5d364d1546fc1c9eef76f17906aeafd0c13 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 2 May 2015 20:53:05 -0400 Subject: fix big-endian code path; make the code more -Wall-resistant. --- include/perk/perk_meta.h | 2 +- include/perk/perk_structs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h index e3f3375..8ca8f53 100644 --- a/include/perk/perk_meta.h +++ b/include/perk/perk_meta.h @@ -65,7 +65,7 @@ struct pe_meta_opt_hdr_std { struct pe_meta_opt_hdr_vers { uint16_t major_os_ver; - uint16_t minor_or_ver; + uint16_t minor_os_ver; uint16_t major_image_ver; uint16_t minor_image_ver; uint16_t major_subsys_ver; diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h index 7254250..f4202b1 100644 --- a/include/perk/perk_structs.h +++ b/include/perk/perk_structs.h @@ -166,7 +166,7 @@ struct pe_opt_hdr_align { struct pe_opt_hdr_vers { unsigned char major_os_ver [PE_MAJOR_OPERATING_SYSTEM_VERSION_BS]; /* 0x28 */ - unsigned char minor_or_ver [PE_MINOR_OPERATING_SYSTEM_VERSION_BS]; /* 0x2a */ + unsigned char minor_os_ver [PE_MINOR_OPERATING_SYSTEM_VERSION_BS]; /* 0x2a */ unsigned char major_image_ver [PE_MAJOR_IMAGE_VERSION_BS]; /* 0x2c */ unsigned char minor_image_ver [PE_MINOR_IMAGE_VERSION_BS]; /* 0x2e */ unsigned char major_subsys_ver [PE_MAJOR_SUBSYSTEM_VERSION_BS]; /* 0x30 */ -- cgit v1.2.3