mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:41:41 +00:00
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>
This commit is contained in:
parent
a9baa25c8c
commit
63ef9854fb
|
@ -310,7 +310,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));
|
||||
|
|
Loading…
Reference in a new issue