summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;