summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-15 21:37:07 -0500
committermidipix <writeonce@midipix.org>2016-11-15 21:37:55 -0500
commitad7d42a156fbcfb853d1b3d9f18fdbb2bb29a2a6 (patch)
tree927902d0dc1ce195844cde1594bd427ec12efec0
parent85fd0d93894d1d9f4b0d36e654457608b2469cf6 (diff)
downloadperk-ad7d42a156fbcfb853d1b3d9f18fdbb2bb29a2a6.tar.bz2
perk-ad7d42a156fbcfb853d1b3d9f18fdbb2bb29a2a6.tar.xz
pe_get_image_meta(): record number of exported symbols in the summary.
-rw-r--r--src/logic/pe_get_image_meta.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c
index 14e54c7..f099ecb 100644
--- a/src/logic/pe_get_image_meta.c
+++ b/src/logic/pe_get_image_meta.c
@@ -236,8 +236,10 @@ int pe_get_image_meta(
m->aedata = (struct pe_export_hdr *)(base + m->sectbl[i].ptr_to_raw_data);
}
- if (m->aedata)
+ if (m->aedata) {
pe_read_export_header(m->aedata,&m->edata);
+ m->summary.nexpsyms = m->edata.num_of_name_ptrs;
+ }
/* .idata */
struct pe_import_hdr * pidata;