https://git.reactos.org/?p=reactos.git;a=commitdiff;h=dfc5f68673bb6b9fca8e49f9abf21d3c8086af86

commit dfc5f68673bb6b9fca8e49f9abf21d3c8086af86
Author:     winesync <[email protected]>
AuthorDate: Fri Sep 11 15:53:05 2020 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Sep 16 10:35:38 2020 +0200

    [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 <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id 63ef9854fb6fc91a8c956a9d91abc07e906a4a33 by Zebediah Figura 
<[email protected]>
---
 dll/win32/dbghelp/dbghelp.c    | 2 +-
 sdk/tools/winesync/dbghelp.cfg | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dll/win32/dbghelp/dbghelp.c b/dll/win32/dbghelp/dbghelp.c
index 1c540cb74f4..76ea6e62470 100644
--- a/dll/win32/dbghelp/dbghelp.c
+++ b/dll/win32/dbghelp/dbghelp.c
@@ -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));
diff --git a/sdk/tools/winesync/dbghelp.cfg b/sdk/tools/winesync/dbghelp.cfg
index 9088f216084..f53d6d3b02b 100644
--- a/sdk/tools/winesync/dbghelp.cfg
+++ b/sdk/tools/winesync/dbghelp.cfg
@@ -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

Reply via email to