summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-07-07 03:07:20 +0000
committermidipix <writeonce@midipix.org>2019-07-07 03:12:44 +0000
commit994c64e9649b812f2727fe61f7c18c886621ce67 (patch)
treebf73e154810287a3eaffe21430492d6ce93f33fd
parent91d87e58ef2e0ba4fecfec0b60f00da8011a9e15 (diff)
downloadperk-994c64e964.tar.bz2
perk-994c64e964.tar.xz
pe_read_import_lookup(): fix typo (size of ordinal field is 16 bits, not 15).HEADmain
-rw-r--r--src/reader/pe_read_import_header.c2
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;