summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-30 19:40:58 -0500
committermidipix <writeonce@midipix.org>2016-11-30 19:40:58 -0500
commitca9b3d5b1e56f79c38d98672602383b7ba23df70 (patch)
tree3a7f6f94d347993c9ec687cfe19db51004709c0d
parentd34ab8bdb645bcf57d27044828b0754c49933b5e (diff)
downloadperk-ca9b3d5b1e56f79c38d98672602383b7ba23df70.tar.bz2
perk-ca9b3d5b1e56f79c38d98672602383b7ba23df70.tar.xz
struct pe_{raw|meta}_opt_hdr_align: member name normalization.
-rw-r--r--include/perk/perk_meta.h4
-rw-r--r--include/perk/perk_structs.h4
-rw-r--r--src/reader/pe_read_optional_header.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h
index 3ba97aa..931ff75 100644
--- a/include/perk/perk_meta.h
+++ b/include/perk/perk_meta.h
@@ -107,8 +107,8 @@ struct pe_meta_opt_hdr_vers {
};
struct pe_meta_opt_hdr_align {
- uint32_t section_align;
- uint32_t file_align;
+ uint32_t coh_section_align;
+ uint32_t coh_file_align;
};
struct pe_meta_opt_hdr_img {
diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h
index b81f831..9a20036 100644
--- a/include/perk/perk_structs.h
+++ b/include/perk/perk_structs.h
@@ -52,8 +52,8 @@ struct pe_raw_opt_hdr_std {
};
struct pe_raw_opt_hdr_align {
- unsigned char section_align [0x04]; /* 0x20 */
- unsigned char file_align [0x04]; /* 0x24 */
+ unsigned char coh_section_align [0x04]; /* 0x20 */
+ unsigned char coh_file_align [0x04]; /* 0x24 */
};
struct pe_raw_opt_hdr_vers {
diff --git a/src/reader/pe_read_optional_header.c b/src/reader/pe_read_optional_header.c
index b32dd6f..5a2e10a 100644
--- a/src/reader/pe_read_optional_header.c
+++ b/src/reader/pe_read_optional_header.c
@@ -66,8 +66,8 @@ static int pe_read_optional_header_structs(const union pe_raw_opt_hdr * p, struc
m->vers.win32_ver = pe_read_long(avers->win32_ver);
/* align */
- m->align.section_align = pe_read_long(aalign->section_align);
- m->align.file_align = pe_read_long(aalign->file_align);
+ m->align.coh_section_align = pe_read_long(aalign->coh_section_align);
+ m->align.coh_file_align = pe_read_long(aalign->coh_file_align);
/* img */
m->img.size_of_image = pe_read_long(aimg->size_of_image);