summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-01 21:09:38 -0500
committermidipix <writeonce@midipix.org>2016-12-01 21:09:38 -0500
commitc2233d033ca79391b493c45b1efa65a02103bd32 (patch)
treed0a2dd2e14c85a8431f469120cf4596b4be80291
parent7c54020308b9cb81b23ebdf4876b461dc75a39e4 (diff)
downloadpemagine-c2233d033ca79391b493c45b1efa65a02103bd32.tar.bz2
pemagine-c2233d033ca79391b493c45b1efa65a02103bd32.tar.xz
struct pe_raw_import_hdr: member name normalization.
-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++;