dbghelp: Fix a failure about 'wrong name EntryPoint'.

Regression was introduced in d614ac4671
by allowing to return the symbol with the lowest address in the module
even if the requested address was strictly below.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-08-21 22:30:10 +02:00 committed by Alexandre Julliard
parent 5ddcb94af6
commit 7d54682ffc
1 changed files with 1 additions and 5 deletions

View File

@ -893,11 +893,7 @@ struct symt_ht* symt_find_nearest(struct module* module, DWORD_PTR addr)
high = module->num_sorttab;
symt_get_address(&module->addr_sorttab[0]->symt, &ref_addr);
if (addr <= ref_addr)
{
low = symt_get_best_at(module, 0);
return module->addr_sorttab[low];
}
if (addr < ref_addr) return NULL;
if (high)
{