[WINESYNC] dbghelp: Only check process architecture if we are actually given a process.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45407
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id 63ef9854fb6fc91a8c956a9d91abc07e906a4a33 by Zebediah Figura <z.figura12@gmail.com>
This commit is contained in:
winesync 2020-09-11 15:53:05 +02:00 committed by Jérôme Gardou
parent 58e2e22449
commit dfc5f68673
2 changed files with 2 additions and 2 deletions

View file

@ -324,7 +324,7 @@ BOOL WINAPI SymInitializeW(HANDLE hProcess, PCWSTR UserSearchPath, BOOL fInvadeP
IsWow64Process(GetCurrentProcess(), &wow64);
if (!IsWow64Process(hProcess, &child_wow64))
if (GetProcessId(hProcess) && !IsWow64Process(hProcess, &child_wow64))
return FALSE;
pcs = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*pcs));

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: 3e1a56290191e37aded204c554f2e550c0257300
wine: 63ef9854fb6fc91a8c956a9d91abc07e906a4a33