Module: wine Branch: master Commit: 607a07f42affeb52ec9c1b654233366d1fc3d295 URL: http://source.winehq.org/git/wine.git/?a=commit;h=607a07f42affeb52ec9c1b6542...
Author: Eric Pouech eric.pouech@orange.fr Date: Thu Jun 25 22:27:24 2009 +0200
dbghelp: When loading ELF public information, handle the cases when we don't get an address.
---
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