summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/pemagine/pe_structs.h10
-rw-r--r--src/imports/pe_enum_image_import_hdrs.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/pemagine/pe_structs.h b/include/pemagine/pe_structs.h
index 7b99482..c0a8be7 100644
--- a/include/pemagine/pe_structs.h
+++ b/include/pemagine/pe_structs.h
@@ -273,11 +273,11 @@ union pe_raw_import_lookup {
struct pe_raw_import_hdr {
- unsigned char import_lookup_tbl_rva [0x04]; /* 0x00 */
- unsigned char time_date_stamp [0x04]; /* 0x04 */
- unsigned char forwarder_chain [0x04]; /* 0x08 */
- unsigned char name_rva [0x04]; /* 0x0c */
- unsigned char import_addr_tbl_rva [0x04]; /* 0x10 */
+ unsigned char ih_import_lookup_tbl_rva [0x04]; /* 0x00 */
+ unsigned char ih_time_date_stamp [0x04]; /* 0x04 */
+ unsigned char ih_forwarder_chain [0x04]; /* 0x08 */
+ unsigned char ih_name_rva [0x04]; /* 0x0c */
+ unsigned char ih_import_addr_tbl_rva [0x04]; /* 0x10 */
};
diff --git a/src/imports/pe_enum_image_import_hdrs.c b/src/imports/pe_enum_image_import_hdrs.c
index 4989c0d..1b6100a 100644
--- a/src/imports/pe_enum_image_import_hdrs.c
+++ b/src/imports/pe_enum_image_import_hdrs.c
@@ -24,7 +24,7 @@ int pe_enum_image_import_hdrs(
if ((ret = callback(base,0,PE_CALLBACK_REASON_INIT,ctx)) <= 0)
return ret;
- while (imp_hdr->name_rva[0]) {
+ while (imp_hdr->ih_name_rva[0]) {
if ((ret = callback(base,imp_hdr,PE_CALLBACK_REASON_ITEM,ctx)) <= 0)
return ret;
imp_hdr++;