diff options
author | midipix <writeonce@midipix.org> | 2017-02-17 12:39:12 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-02-17 12:39:12 -0500 |
commit | ab75db89e534333e4e09935864c332494c3dd81d (patch) | |
tree | 0a638c6d86e3e9ffdd87633d20622d77b44d6f89 /src/logic | |
parent | b6058660b9b7de60683310b268dfa285aad07912 (diff) | |
download | perk-ab75db89e534333e4e09935864c332494c3dd81d.tar.bz2 perk-ab75db89e534333e4e09935864c332494c3dd81d.tar.xz |
pe_get_image_meta(): properly scan the import library header table.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/pe_get_image_meta.c | 2 |
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 */ |