Skip to content
Snippets Groups Projects
Commit 63ef9854 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard
Browse files

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

parent a9baa25c
Branches
Tags
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment