diff options
author | midipix <writeonce@midipix.org> | 2016-12-01 05:59:35 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-01 05:59:35 -0500 |
commit | 012431abcb9b2fdba8e1c55d774d551a161ae5fe (patch) | |
tree | 53f0c83389432ed663ffb766898a7aeaafff6ed9 /src | |
parent | 4211a1c6f3815706e69fdf756195256bdafaac30 (diff) | |
download | perk-012431abcb9b2fdba8e1c55d774d551a161ae5fe.tar.bz2 perk-012431abcb9b2fdba8e1c55d774d551a161ae5fe.tar.xz |
struct pe_meta_opt_hdr_mem: member name normalization.
Diffstat (limited to 'src')
-rw-r--r-- | src/reader/pe_read_optional_header.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/reader/pe_read_optional_header.c b/src/reader/pe_read_optional_header.c index 0c6c302..274a22d 100644 --- a/src/reader/pe_read_optional_header.c +++ b/src/reader/pe_read_optional_header.c @@ -108,21 +108,21 @@ int pe_read_optional_header(const union pe_raw_opt_hdr * p, struct pe_meta_opt_h switch (m->std.coh_magic) { case PE_MAGIC_PE32: - m->mem.base_of_data = pe_read_long(p->opt_hdr_32.base_of_data); - m->mem.image_base = pe_read_long(p->opt_hdr_32.image_base); - m->mem.size_of_stack_reserve = pe_read_long(p->opt_hdr_32.size_of_stack_reserve); - m->mem.size_of_stack_commit = pe_read_long(p->opt_hdr_32.size_of_stack_commit); - m->mem.size_of_heap_reserve = pe_read_long(p->opt_hdr_32.size_of_heap_reserve); - m->mem.size_of_heap_commit = pe_read_long(p->opt_hdr_32.size_of_heap_commit); + m->mem.coh_base_of_data = pe_read_long(p->opt_hdr_32.base_of_data); + m->mem.coh_image_base = pe_read_long(p->opt_hdr_32.image_base); + m->mem.coh_size_of_stack_reserve = pe_read_long(p->opt_hdr_32.size_of_stack_reserve); + m->mem.coh_size_of_stack_commit = pe_read_long(p->opt_hdr_32.size_of_stack_commit); + m->mem.coh_size_of_heap_reserve = pe_read_long(p->opt_hdr_32.size_of_heap_reserve); + m->mem.coh_size_of_heap_commit = pe_read_long(p->opt_hdr_32.size_of_heap_commit); break; case PE_MAGIC_PE32_PLUS: - m->mem.base_of_data = (uint64_t)-1; - m->mem.image_base = pe_read_quad(p->opt_hdr_64.image_base); - m->mem.size_of_stack_reserve = pe_read_quad(p->opt_hdr_64.size_of_stack_reserve); - m->mem.size_of_stack_commit = pe_read_quad(p->opt_hdr_64.size_of_stack_commit); - m->mem.size_of_heap_reserve = pe_read_quad(p->opt_hdr_64.size_of_heap_reserve); - m->mem.size_of_heap_commit = pe_read_quad(p->opt_hdr_64.size_of_heap_commit); + m->mem.coh_base_of_data = (uint64_t)-1; + m->mem.coh_image_base = pe_read_quad(p->opt_hdr_64.image_base); + m->mem.coh_size_of_stack_reserve = pe_read_quad(p->opt_hdr_64.size_of_stack_reserve); + m->mem.coh_size_of_stack_commit = pe_read_quad(p->opt_hdr_64.size_of_stack_commit); + m->mem.coh_size_of_heap_reserve = pe_read_quad(p->opt_hdr_64.size_of_heap_reserve); + m->mem.coh_size_of_heap_commit = pe_read_quad(p->opt_hdr_64.size_of_heap_commit); break; } |