diff options
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/pe_output_export_symbols.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/pe_output_export_symbols.c b/src/output/pe_output_export_symbols.c index 192bca3..099b540 100644 --- a/src/output/pe_output_export_symbols.c +++ b/src/output/pe_output_export_symbols.c @@ -15,10 +15,10 @@ int pe_output_export_symbols (const struct pe_image_meta * m, uint32_t flags, FI if (!m->hedata) return 0; offset = m->hedata->virtual_addr - m->hedata->ptr_to_raw_data; - symrva = (uint32_t *)(m->image.addr + (m->edata.name_ptr_rva - offset)); + symrva = (uint32_t *)((uintptr_t)m->image.addr + (m->edata.name_ptr_rva - offset)); for (i=0; i<m->edata.num_of_name_ptrs; i++) - fprintf(f,"%s\n",(char *)(m->image.addr + symrva[i] - offset)); + fprintf(f,"%s\n",(char *)((uintptr_t)m->image.addr + symrva[i] - offset)); return 0; } |