Commit 7d54682f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

Regression was introduced in d614ac46 by allowing to return the symbol with the lowest address in the module even if the requested address was strictly below. Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 5ddcb94a
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment