From c2233d033ca79391b493c45b1efa65a02103bd32 Mon Sep 17 00:00:00 2001 From: midipix Date: Dec 02 2016 02:09:38 +0000 Subject: struct pe_raw_import_hdr: member name normalization. --- 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++;