Eric Pouech : dbghelp: When loading ELF public information, handle the cases when we don't get an address.
Alexandre Julliard
julliard at winehq.org
Fri Jun 26 09:47:08 CDT 2009
Module: wine
Branch: master
Commit: 607a07f42affeb52ec9c1b654233366d1fc3d295
URL: http://source.winehq.org/git/wine.git/?a=commit;h=607a07f42affeb52ec9c1b654233366d1fc3d295
Author: Eric Pouech <eric.pouech at 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
More information about the wine-cvs
mailing list