[WINESYNC] dbghelp: Ignore missing debug info in SymInitializeW.

When fInvadeProcess is used, we return an error if the target process
is found but its debug info is not. We should only return an error if
the process is not found.

This fixes a SymInitializeW popup error on Hard Reset Redux startup.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id 774ee4734a7d6c02f648fdf1747df837c964583d by Rémi Bernon <rbernon@codeweavers.com>
This commit is contained in:
winesync 2020-09-11 19:53:58 +02:00 committed by Jérôme Gardou
parent c8c8313c67
commit ee8def7d76
2 changed files with 5 additions and 5 deletions

View File

@ -378,10 +378,10 @@ static BOOL check_live_target(struct process* pcs)
TRACE("got debug info address %#lx from PEB %p\n", base, pbi.PebBaseAddress);
#ifndef __REACTOS__
return elf_read_wine_loader_dbg_info(pcs, base) || macho_read_wine_loader_dbg_info(pcs, base);
#else
return TRUE;
if (!elf_read_wine_loader_dbg_info(pcs, base) && !macho_read_wine_loader_dbg_info(pcs, base))
WARN("couldn't load process debug info at %#lx\n", base);
#endif
return TRUE;
}
#endif
@ -485,7 +485,7 @@ BOOL WINAPI SymInitializeW(HANDLE hProcess, PCWSTR UserSearchPath, BOOL fInvadeP
{
if (fInvadeProcess)
EnumerateLoadedModulesW64(hProcess, process_invade_cb, hProcess);
pcs->loader->synchronize_module_list(pcs);
if (pcs->loader) pcs->loader->synchronize_module_list(pcs);
}
else if (fInvadeProcess)
#else

View File

@ -4,4 +4,4 @@ files:
include/dbghelp.h: sdk/include/psdk/dbghelp.h
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
tags:
wine: 30f17befaf216a42a4e2cfbca3ed7bdce43e476a
wine: 774ee4734a7d6c02f648fdf1747df837c964583d