diff --git a/src/main/pe_get_image_meta.c b/src/main/pe_get_image_meta.c index 0ee8e8e..f52c2e8 100644 --- a/src/main/pe_get_image_meta.c +++ b/src/main/pe_get_image_meta.c @@ -169,12 +169,11 @@ int pe_get_image_meta (const struct pe_raw_image * image, struct pe_image_meta * break; } - struct pe_hint_name_entry * pentry = (struct pe_hint_name_entry *)(base + m->hidata->ptr_to_raw_data - + m->idata[i].items[j].u.hint_name_tbl_rva - m->hidata->virtual_addr); + if (!m->idata[i].items[j].flags) { + struct pe_hint_name_entry * pentry = + (struct pe_hint_name_entry *)(base + m->hidata->ptr_to_raw_data + + m->idata[i].items[j].u.hint_name_tbl_rva - m->hidata->virtual_addr); - if (m->idata[i].items[j].flags) - 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);