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:
parent
5ddcb94af6
commit
7d54682ffc
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue