diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/pe_get_image_meta.c | 4 | ||||
-rw-r--r-- | src/reader/pe_read_export_header.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c index a0c77f1..a722550 100644 --- a/src/logic/pe_get_image_meta.c +++ b/src/logic/pe_get_image_meta.c @@ -229,11 +229,11 @@ int pe_get_image_meta( if (s >= 0) { m->hedata = &m->sectbl[s]; - m->aedata = (struct pe_export_hdr *)(base + m->sectbl[s].ptr_to_raw_data + m->aedata = (struct pe_raw_export_hdr *)(base + m->sectbl[s].ptr_to_raw_data + m->opt.dirs.export_tbl.rva - m->sectbl[s].virtual_addr); } else if (i >= 0) { m->hedata = &m->sectbl[i]; - m->aedata = (struct pe_export_hdr *)(base + m->sectbl[i].ptr_to_raw_data); + m->aedata = (struct pe_raw_export_hdr *)(base + m->sectbl[i].ptr_to_raw_data); } if (m->aedata) { diff --git a/src/reader/pe_read_export_header.c b/src/reader/pe_read_export_header.c index a8f454c..47dab66 100644 --- a/src/reader/pe_read_export_header.c +++ b/src/reader/pe_read_export_header.c @@ -10,7 +10,7 @@ #include "perk_endian_impl.h" #include "perk_reader_impl.h" -int pe_read_export_header(const struct pe_export_hdr * p, struct pe_meta_export_hdr * m) +int pe_read_export_header(const struct pe_raw_export_hdr * p, struct pe_meta_export_hdr * m) { m->export_flags = pe_read_long(p->export_flags); m->time_date_stamp = pe_read_long(p->time_date_stamp); |