summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/logic/pe_get_image_meta.c4
-rw-r--r--src/reader/pe_read_export_header.c2
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);