summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/perk/perk_structs.h4
-rw-r--r--src/logic/pe_get_image_meta.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h
index 8835b87..06ff7ec 100644
--- a/include/perk/perk_structs.h
+++ b/include/perk/perk_structs.h
@@ -282,8 +282,8 @@ struct pe_raw_import_hdr {
struct pe_raw_hint_name_entry {
- unsigned char hint [0x02]; /* 0x00 */
- unsigned char name [0x02]; /* 0x02 */
+ unsigned char ii_hint [0x02]; /* 0x00 */
+ unsigned char ii_name [0x02]; /* 0x02 */
};
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index ac3f114..0155e6b 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -322,7 +322,7 @@ int pe_get_image_meta(
(struct pe_raw_hint_name_entry *)(base + m->hidata->sh_ptr_to_raw_data
+ m->idata[i].ih_items[j].u.ii_hint_name_tbl_rva - m->hidata->sh_virtual_addr);
- m->idata[i].ih_items[j].ii_name = (char *)pentry->name;
+ m->idata[i].ih_items[j].ii_name = (char *)pentry->ii_name;
}
}
}