diff options
author | midipix <writeonce@midipix.org> | 2018-11-17 23:43:18 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-11-20 20:25:17 -0500 |
commit | 4ae524cd27c6aa6f95dd62a7e6eb4a02acdfd4d6 (patch) | |
tree | db04d7c14a172ff253e802674f7cee7f2a0342fb /include | |
parent | 2bae5fde60d0cad9203b554f36d6724dbc255c30 (diff) | |
download | perk-4ae524cd27c6aa6f95dd62a7e6eb4a02acdfd4d6.tar.bz2 perk-4ae524cd27c6aa6f95dd62a7e6eb4a02acdfd4d6.tar.xz |
pe_get_image_meta(), pe_read_import_lookup(): follow correct lookup semantics.
Diffstat (limited to 'include')
-rw-r--r-- | include/perk/perk_meta.h | 4 | ||||
-rw-r--r-- | include/perk/perk_structs.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/perk/perk_meta.h b/include/perk/perk_meta.h index 7467c44..eeed089 100644 --- a/include/perk/perk_meta.h +++ b/include/perk/perk_meta.h @@ -240,11 +240,11 @@ struct pe_meta_import_lookup { union { uint64_t ii_import_lookup_entry_64; uint32_t ii_import_lookup_entry_32; - uint32_t ii_hint_name_tbl_rva; - uint16_t ii_ordinal_number; } u; + uint32_t ii_hint_name_tbl_rva; uint32_t ii_flag; + uint16_t ii_ordinal; uint16_t ii_hint; char * ii_name; }; diff --git a/include/perk/perk_structs.h b/include/perk/perk_structs.h index 094dae6..4dd2ffc 100644 --- a/include/perk/perk_structs.h +++ b/include/perk/perk_structs.h @@ -299,8 +299,6 @@ struct pe_raw_import_name { union pe_raw_import_lookup { unsigned char ii_import_lookup_entry_64 [0x08]; /* 0x00 */ unsigned char ii_import_lookup_entry_32 [0x04]; /* 0x00 */ - unsigned char ii_hint_name_tbl_rva [0x04]; /* 0x00 */ - unsigned char ii_ordinal_number [0x02]; /* 0x00 */ }; |