[PATCH 1/4] [DbgHelp]: when loading ELF public information, handle the cases when we don't get an address
Eric Pouech
eric.pouech at orange.fr
Thu Jun 25 15:27:24 CDT 2009
A+
---
dlls/dbghelp/elf_module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index b672788..12754dd 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -650,8 +650,8 @@ static int elf_new_wine_thunks(struct module* module, struct hash_table* ht_symt
ULONG64 ref_addr;
symt = symt_find_nearest(module, addr);
- if (symt)
- symt_get_info(&symt->symt, TI_GET_ADDRESS, &ref_addr);
+ if (symt && !symt_get_info(&symt->symt, TI_GET_ADDRESS, &ref_addr))
+ ref_addr = addr;
if (!symt || addr != ref_addr)
{
/* creating public symbols for all the ELF symbols which haven't been
More information about the wine-patches
mailing list