summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-30 23:08:42 -0500
committermidipix <writeonce@midipix.org>2016-11-30 23:08:42 -0500
commit0d33f17d7705249d28c30c32878cd1841cf88be4 (patch)
treefad404495919398f46844c342ab7b50ffe95ca78 /src/logic
parenta402c4942040e060c9572efd17759d275826771b (diff)
downloadperk-0d33f17d7705249d28c30c32878cd1841cf88be4.tar.bz2
perk-0d33f17d7705249d28c30c32878cd1841cf88be4.tar.xz
struct pe_{raw|meta}_opt_hdr_dirs: member name normalization.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/pe_get_image_meta.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index f3c0dac..d329727 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -221,7 +221,7 @@ int pe_get_image_meta(
/* .edata */
i = pe_get_named_section_index(m,".edata");
- s = pe_get_block_section_index(m,&m->opt.dirs.export_tbl);
+ s = pe_get_block_section_index(m,&m->opt.dirs.coh_export_tbl);
if ((i >= 0) && (i != s))
return pe_free_image_meta_impl(
@@ -230,7 +230,7 @@ int pe_get_image_meta(
if (s >= 0) {
m->hedata = &m->sectbl[s];
m->aedata = (struct pe_raw_export_hdr *)(base + m->sectbl[s].ptr_to_raw_data
- + m->opt.dirs.export_tbl.dh_rva - m->sectbl[s].virtual_addr);
+ + m->opt.dirs.coh_export_tbl.dh_rva - m->sectbl[s].virtual_addr);
} else if (i >= 0) {
m->hedata = &m->sectbl[i];
m->aedata = (struct pe_raw_export_hdr *)(base + m->sectbl[i].ptr_to_raw_data);
@@ -246,7 +246,7 @@ int pe_get_image_meta(
union pe_raw_import_lookup * pitem;
i = pe_get_named_section_index(m,".idata");
- s = pe_get_block_section_index(m,&m->opt.dirs.import_tbl);
+ s = pe_get_block_section_index(m,&m->opt.dirs.coh_import_tbl);
if ((i >= 0) && (i != s))
return pe_free_image_meta_impl(
@@ -255,7 +255,7 @@ int pe_get_image_meta(
if (s >= 0) {
m->hidata = &m->sectbl[s];
m->aidata = (struct pe_raw_import_hdr *)(base + m->sectbl[s].ptr_to_raw_data
- + m->opt.dirs.import_tbl.dh_rva - m->sectbl[s].virtual_addr);
+ + m->opt.dirs.coh_import_tbl.dh_rva - m->sectbl[s].virtual_addr);
} else if (i >= 0) {
m->hidata = &m->sectbl[i];
m->aidata = (struct pe_raw_import_hdr *)(base + m->sectbl[i].ptr_to_raw_data);