summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-01 07:57:39 -0500
committermidipix <writeonce@midipix.org>2016-12-01 07:57:39 -0500
commit9740a33c5d6bb235cc3a4fa6e687ed35dd1b34cc (patch)
tree2a164f4e456f9e477fe107af4012d675decc4c7b /include
parent2486e675b16469a08b371006bacbe0f001e09eb6 (diff)
downloadperk-9740a33c5d6bb235cc3a4fa6e687ed35dd1b34cc.tar.bz2
perk-9740a33c5d6bb235cc3a4fa6e687ed35dd1b34cc.tar.xz
struct pe_{raw|meta}_sec_hdr: member name normalization.
Diffstat (limited to 'include')
-rw-r--r--include/perk/perk_meta.h22
-rw-r--r--include/perk/perk_structs.h20
2 files changed, 21 insertions, 21 deletions
diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h
index 1a53406..9181782 100644
--- a/include/perk/perk_meta.h
+++ b/include/perk/perk_meta.h
@@ -182,17 +182,17 @@ struct pe_meta_opt_hdr {
/* section header */
struct pe_meta_sec_hdr {
- char name[16];
- char * long_name;
- uint32_t virtual_size;
- uint32_t virtual_addr;
- uint32_t size_of_raw_data;
- uint32_t ptr_to_raw_data;
- uint32_t ptr_to_relocs;
- uint32_t ptr_to_line_nums;
- uint16_t num_of_relocs;
- uint16_t num_of_line_nums;
- uint32_t characteristics;
+ char sh_name[16];
+ char * sh_long_name;
+ uint32_t sh_virtual_size;
+ uint32_t sh_virtual_addr;
+ uint32_t sh_size_of_raw_data;
+ uint32_t sh_ptr_to_raw_data;
+ uint32_t sh_ptr_to_relocs;
+ uint32_t sh_ptr_to_line_nums;
+ uint16_t sh_num_of_relocs;
+ uint16_t sh_num_of_line_nums;
+ uint32_t sh_characteristics;
};
diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h
index 4a7f647..0256030 100644
--- a/include/perk/perk_structs.h
+++ b/include/perk/perk_structs.h
@@ -230,16 +230,16 @@ struct pe_raw_image_data_dir {
struct pe_raw_sec_hdr {
- unsigned char name [0x08]; /* 0x00 */
- unsigned char virtual_size [0x04]; /* 0x08 */
- unsigned char virtual_addr [0x04]; /* 0x0c */
- unsigned char size_of_raw_data [0x04]; /* 0x10 */
- unsigned char ptr_to_raw_data [0x04]; /* 0x14 */
- unsigned char ptr_to_relocs [0x04]; /* 0x18 */
- unsigned char ptr_to_line_nums [0x04]; /* 0x1c */
- unsigned char num_of_relocs [0x02]; /* 0x20 */
- unsigned char num_of_line_nums [0x02]; /* 0x22 */
- unsigned char characteristics [0x04]; /* 0x24 */
+ unsigned char sh_name [0x08]; /* 0x00 */
+ unsigned char sh_virtual_size [0x04]; /* 0x08 */
+ unsigned char sh_virtual_addr [0x04]; /* 0x0c */
+ unsigned char sh_size_of_raw_data [0x04]; /* 0x10 */
+ unsigned char sh_ptr_to_raw_data [0x04]; /* 0x14 */
+ unsigned char sh_ptr_to_relocs [0x04]; /* 0x18 */
+ unsigned char sh_ptr_to_line_nums [0x04]; /* 0x1c */
+ unsigned char sh_num_of_relocs [0x02]; /* 0x20 */
+ unsigned char sh_num_of_line_nums [0x02]; /* 0x22 */
+ unsigned char sh_characteristics [0x04]; /* 0x24 */
};