module->addr_sorttab may be NULL due to a hack in

elf_new_wine_thunks.
This commit is contained in:
Dmitry Timoshkov 2004-08-09 18:50:21 +00:00 committed by Alexandre Julliard
parent fbce110be4
commit 1e268017d1
1 changed files with 4 additions and 1 deletions

View File

@ -612,7 +612,10 @@ int symt_find_nearest(struct module* module, DWORD addr)
int mid, high, low;
DWORD ref_addr, ref_size;
if (!module->sortlist_valid && !resort_symbols(module)) return -1;
if (!module->sortlist_valid || !module->addr_sorttab)
{
if (!resort_symbols(module)) return -1;
}
/*
* Binary search to find closest symbol.