diff options
-rw-r--r-- | include/perk/perk_meta.h | 4 | ||||
-rw-r--r-- | include/perk/perk_structs.h | 4 | ||||
-rw-r--r-- | src/reader/pe_read_optional_header.c | 4 |
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); |