From ffd8a38d5c3b0e046bc4b5569c9461e390451e6b Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 17 Nov 2018 11:21:51 -0500 Subject: pe_get_image_meta(), struct pe_meta_export_hdr: added .eh_virtual_addr. --- src/logic/pe_get_image_meta.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/logic') diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c index 4943780..38d544a 100644 --- a/src/logic/pe_get_image_meta.c +++ b/src/logic/pe_get_image_meta.c @@ -384,9 +384,11 @@ int pe_get_image_meta( m->h_edata = &m->m_sectbl[s]; m->r_edata = (struct pe_raw_export_hdr *)(base + m->m_sectbl[s].sh_ptr_to_raw_data + m->m_opt.oh_dirs.coh_export_tbl.dh_rva - m->m_sectbl[s].sh_virtual_addr); + m->m_edata.eh_virtual_addr = m->m_opt.oh_dirs.coh_export_tbl.dh_rva; } else if (i >= 0) { m->h_edata = &m->m_sectbl[i]; m->r_edata = (struct pe_raw_export_hdr *)(base + m->m_sectbl[i].sh_ptr_to_raw_data); + m->m_edata.eh_virtual_addr = m->m_sectbl[i].sh_virtual_addr; } if (m->r_edata) { -- cgit v1.2.3