summaryrefslogtreecommitdiffhomepage
path: root/src/main
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-05-29 15:16:46 -0400
committermidipix <writeonce@midipix.org>2016-11-10 23:35:20 -0500
commit19bf4f31f57fc0f4e90f5c457e7542aec3c57271 (patch)
tree2eb840eaa387f4da6a38f7afe19788f9bb0a42d4 /src/main
parent83599e55ba2cbd27c555548ccc84d83d6096a61c (diff)
downloadperk-19bf4f31f57fc0f4e90f5c457e7542aec3c57271.tar.bz2
perk-19bf4f31f57fc0f4e90f5c457e7542aec3c57271.tar.xz
pe_get_image_meta(): do not print import library information unconditionally.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/pe_get_image_meta.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/pe_get_image_meta.c b/src/main/pe_get_image_meta.c
index f7a4139..0ee8e8e 100644
--- a/src/main/pe_get_image_meta.c
+++ b/src/main/pe_get_image_meta.c
@@ -140,7 +140,9 @@ int pe_get_image_meta (const struct pe_raw_image * image, struct pe_image_meta *
m->idata[i].aitems = (struct pe_import_lookup_item *)(base + m->hidata->ptr_to_raw_data
+ m->idata[i].import_lookup_tbl_rva - m->hidata->virtual_addr);
+ #ifdef PERK_DEVEL
printf("%s\n",m->idata[i].name);
+ #endif
/* items */
m->idata[i].count = 0;
@@ -174,7 +176,9 @@ int pe_get_image_meta (const struct pe_raw_image * image, struct pe_image_meta *
m->idata[i].items[j].hint = pe_read_short(pentry->hint);
else {
m->idata[i].items[j].name = (char *)pentry->name;
+ #ifdef PERK_DEVEL
printf("%s\n",m->idata[i].items[j].name);
+ #endif
}
}
}