summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-01 08:29:34 -0500
committermidipix <writeonce@midipix.org>2016-12-01 08:29:34 -0500
commitf845bd25e705125bb60762f9ac43fba1aaef1cdc (patch)
tree72bfc66d208e6835978bc6357c0a3b9b85ab3a7c /src/logic
parent44d09635402c850ef7174626c119e1200eb7099a (diff)
downloadperk-f845bd25e705125bb60762f9ac43fba1aaef1cdc.tar.bz2
perk-f845bd25e705125bb60762f9ac43fba1aaef1cdc.tar.xz
{union|struct} pe_{raw|meta}_import_lookup: member name normalization.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/pe_get_image_meta.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index 9353ac4..7e0bbf2 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -287,9 +287,9 @@ int pe_get_image_meta(
if (m->idata[i].import_lookup_tbl_rva) {
pitem = m->idata[i].aitems;
- hint = (uint32_t *)pitem->hint_name_tbl_rva;
+ hint = (uint32_t *)pitem->ii_hint_name_tbl_rva;
- for (; *hint; hint=(uint32_t *)((++pitem)->hint_name_tbl_rva))
+ for (; *hint; hint=(uint32_t *)((++pitem)->ii_hint_name_tbl_rva))
m->idata[i].count++;
if (!(m->idata[i].items = calloc(m->idata[i].count,sizeof(*(m->idata[i].items)))))
@@ -307,20 +307,20 @@ int pe_get_image_meta(
switch (m->opt.oh_std.coh_magic) {
case PE_MAGIC_PE32:
- m->idata[i].items[j].flags = m->idata[i].items[j].u.import_lookup_entry_32;
+ m->idata[i].items[j].ii_flags = m->idata[i].items[j].u.ii_import_lookup_entry_32;
break;
case PE_MAGIC_PE32_PLUS:
- m->idata[i].items[j].flags = (m->idata[i].items[j].u.import_lookup_entry_64 >> 32);
+ m->idata[i].items[j].ii_flags = (m->idata[i].items[j].u.ii_import_lookup_entry_64 >> 32);
break;
}
- if (!m->idata[i].items[j].flags) {
+ if (!m->idata[i].items[j].ii_flags) {
struct pe_raw_hint_name_entry * pentry =
(struct pe_raw_hint_name_entry *)(base + m->hidata->sh_ptr_to_raw_data
- + m->idata[i].items[j].u.hint_name_tbl_rva - m->hidata->sh_virtual_addr);
+ + m->idata[i].items[j].u.ii_hint_name_tbl_rva - m->hidata->sh_virtual_addr);
- m->idata[i].items[j].name = (char *)pentry->name;
+ m->idata[i].items[j].ii_name = (char *)pentry->name;
}
}
}