From f0d194ac855c0d447702c14440f9a5b8e28de38f Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 13 Dec 2017 11:11:49 -0500 Subject: refactor: struct pe_expsym: members are now s-prefixed. --- src/logic/pe_get_image_meta.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/logic/pe_get_image_meta.c b/src/logic/pe_get_image_meta.c index 12a2658..60b7086 100644 --- a/src/logic/pe_get_image_meta.c +++ b/src/logic/pe_get_image_meta.c @@ -126,10 +126,10 @@ int pe_get_expsym_by_name( if (!(strcmp(sym,name))) { if (expsym) { - expsym->name = sym; - expsym->eaddr = 0; - expsym->maddr = 0; - expsym->roffset = 0; + expsym->s_name = sym; + expsym->s_eaddr = 0; + expsym->s_maddr = 0; + expsym->s_roffset = 0; } return 0; @@ -159,10 +159,10 @@ int pe_get_expsym_by_index( symrva = (uint32_t *)((uintptr_t)m->r_image.map_addr + (m->m_edata.eh_name_ptr_rva - offset)); symaddr = (uintptr_t)m->r_image.map_addr + symrva[index] - offset; - expsym->name = (const char *)symaddr; - expsym->eaddr = 0; - expsym->maddr = 0; - expsym->roffset = 0; + expsym->s_name = (const char *)symaddr; + expsym->s_eaddr = 0; + expsym->s_maddr = 0; + expsym->s_roffset = 0; } return 0; -- cgit v1.2.3