summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-19 12:20:12 -0500
committermidipix <writeonce@midipix.org>2016-11-19 12:22:21 -0500
commit8dd726502b05e31022104aac81ae901617827773 (patch)
tree29aa97d3179b0a3bada40e303842f4c6939a49cc /src/logic
parenta09b565929cdefee54c76c828a2ebc90fbb0de1b (diff)
downloadperk-8dd726502b05e31022104aac81ae901617827773.tar.bz2
perk-8dd726502b05e31022104aac81ae901617827773.tar.xz
PE format: struct pe_export_hdr [and friends] --> pe_raw_export_hdr.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/pe_get_image_meta.c4
1 files changed, 2 insertions, 2 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) {