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

Alexandre Julliard julliard at winehq.org
Mon Nov 19 15:59:38 CST 2018


Module: wine
Branch: master
Commit: 63ef9854fb6fc91a8c956a9d91abc07e906a4a33
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=63ef9854fb6fc91a8c956a9d91abc07e906a4a33

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Nov 19 12:17:03 2018 -0600

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 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dbghelp/dbghelp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dbghelp/dbghelp.c b/dlls/dbghelp/dbghelp.c
index a085cd1..ed4d5f4 100644
--- a/dlls/dbghelp/dbghelp.c
+++ b/dlls/dbghelp/dbghelp.c
@@ -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));




More information about the wine-cvs mailing list