summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-12-13 11:11:49 -0500
committermidipix <writeonce@midipix.org>2017-12-13 11:24:14 -0500
commitf0d194ac855c0d447702c14440f9a5b8e28de38f (patch)
tree9bdba1a54ae16cc59fc589aaee1070d5e5dd52a3 /src
parented06fbad97e24dea20e4240054f1cfeb15b15e92 (diff)
downloadperk-f0d194ac855c0d447702c14440f9a5b8e28de38f.tar.bz2
perk-f0d194ac855c0d447702c14440f9a5b8e28de38f.tar.xz
refactor: struct pe_expsym: members are now s-prefixed.
Diffstat (limited to 'src')
-rw-r--r--src/logic/pe_get_image_meta.c16
1 files changed, 8 insertions, 8 deletions
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;