diff options
author | midipix <writeonce@midipix.org> | 2016-12-02 16:47:39 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-02 16:47:39 -0500 |
commit | c8c13111b25d5953956742de4c54e5856737df13 (patch) | |
tree | 3dcbf4a17b79ada5ca9784f6fb0ffa378d9cf412 | |
parent | 982672e537f7dd26e875755f3c20f81e6bf7ba65 (diff) | |
download | perk-c8c13111b25d5953956742de4c54e5856737df13.tar.bz2 perk-c8c13111b25d5953956742de4c54e5856737df13.tar.xz |
struct pe_raw_hint_name_entry: member name normalization.
-rw-r--r-- | include/perk/perk_structs.h | 4 | ||||
-rw-r--r-- | src/logic/pe_get_image_meta.c | 2 |
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; } } } |