dbghelp: When loading ELF public information, handle the cases when we don't get an address.

This commit is contained in:
Eric Pouech 2009-06-25 22:27:24 +02:00 committed by Alexandre Julliard
parent ae62524d76
commit 607a07f42a
1 changed files with 2 additions and 2 deletions

View File

@ -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