diff options
author | midipix <writeonce@midipix.org> | 2019-07-07 03:07:20 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-07-07 03:12:44 +0000 |
commit | 994c64e9649b812f2727fe61f7c18c886621ce67 (patch) | |
tree | bf73e154810287a3eaffe21430492d6ce93f33fd | |
parent | 91d87e58ef2e0ba4fecfec0b60f00da8011a9e15 (diff) | |
download | perk-994c64e9649b812f2727fe61f7c18c886621ce67.tar.bz2 perk-994c64e9649b812f2727fe61f7c18c886621ce67.tar.xz |
pe_read_import_lookup(): fix typo (size of ordinal field is 16 bits, not 15).
-rw-r--r-- | src/reader/pe_read_import_header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader/pe_read_import_header.c b/src/reader/pe_read_import_header.c index d76577f..08d1130 100644 --- a/src/reader/pe_read_import_header.c +++ b/src/reader/pe_read_import_header.c @@ -45,7 +45,7 @@ int pe_read_import_lookup( } if (m->ii_flag) { - m->ii_ordinal = m->u.ii_import_lookup_entry_32 & 0x7fff; + m->ii_ordinal = m->u.ii_import_lookup_entry_32 & 0xffff; m->ii_hint_name_tbl_rva = 0; } else { m->ii_ordinal = 0; |