summaryrefslogtreecommitdiffhomepage
path: root/src/exports/pe_enum_image_exports.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exports/pe_enum_image_exports.c')
-rw-r--r--src/exports/pe_enum_image_exports.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exports/pe_enum_image_exports.c b/src/exports/pe_enum_image_exports.c
index 695a358..42db1cd 100644
--- a/src/exports/pe_enum_image_exports.c
+++ b/src/exports/pe_enum_image_exports.c
@@ -29,20 +29,20 @@ int pe_enum_image_exports(
return -1;
}
- offset = (uint32_t *)(exp_hdr->export_addr_tbl_rva);
+ offset = (uint32_t *)(exp_hdr->eh_export_addr_tbl_rva);
fn_addr = (uint32_t *)pe_va_from_rva(base,*offset);
- offset = (uint32_t *)(exp_hdr->name_ptr_rva);
+ offset = (uint32_t *)(exp_hdr->eh_name_ptr_rva);
fn_names = (uint32_t *)pe_va_from_rva(base,*offset);
- offset = (uint32_t *)(exp_hdr->ordinal_tbl_rva);
+ offset = (uint32_t *)(exp_hdr->eh_ordinal_tbl_rva);
fn_ordinals = (uint16_t *)pe_va_from_rva(base,*offset);
if ((ret = callback(base,exp_hdr,0,PE_CALLBACK_REASON_INIT,ctx)) <= 0)
return ret;
- count = (uint32_t *)exp_hdr->num_of_name_ptrs;
- sym->ordinal_base = (uint32_t *)exp_hdr->ordinal_base;
+ count = (uint32_t *)exp_hdr->eh_num_of_name_ptrs;
+ sym->ordinal_base = (uint32_t *)exp_hdr->eh_ordinal_base;
for (idx=0; idx<*count; idx++) {
offset = (uint32_t *)pe_va_from_rva(fn_names,idx*sizeof(uint32_t));