summaryrefslogtreecommitdiffhomepage
path: root/src/reader
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader')
-rw-r--r--src/reader/pe_read_optional_header.c24
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;
}