summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-02-17 12:39:12 -0500
committermidipix <writeonce@midipix.org>2017-02-17 12:39:12 -0500
commitab75db89e534333e4e09935864c332494c3dd81d (patch)
tree0a638c6d86e3e9ffdd87633d20622d77b44d6f89
parentb6058660b9b7de60683310b268dfa285aad07912 (diff)
downloadperk-ab75db89e534333e4e09935864c332494c3dd81d.tar.bz2
perk-ab75db89e534333e4e09935864c332494c3dd81d.tar.xz
pe_get_image_meta(): properly scan the import library header table.
-rw-r--r--src/logic/pe_get_image_meta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index cab566b..f112f84 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -284,7 +284,7 @@ int pe_get_image_meta(
if (m->aidata) {
/* num of implibs */
- for (pidata=m->aidata; pidata->ih_name_rva[0]; pidata++)
+ for (pidata=m->aidata; pe_read_long(pidata->ih_name_rva); pidata++)
m->summary.nimplibs++;
/* import headers */