From 994c64e9649b812f2727fe61f7c18c886621ce67 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 7 Jul 2019 03:07:20 +0000 Subject: pe_read_import_lookup(): fix typo (size of ordinal field is 16 bits, not 15). --- src/reader/pe_read_import_header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reader') 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; -- cgit v1.2.3