From cbae866df3c6f2f9b7a0f5362debcbf11c253f1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 17 May 2023 15:48:10 +0200 Subject: [PATCH] [KERNEL32] CreateProcessInternalW: Initialize uninitialized ClientId. This situation happens when either of the two "goto VdmShortCircuit;" code paths are taken when starting a DOS or WoW16 app. --- dll/win32/kernel32/client/proc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dll/win32/kernel32/client/proc.c b/dll/win32/kernel32/client/proc.c index 6a9fc1087ab..5a8c78c1364 100644 --- a/dll/win32/kernel32/client/proc.c +++ b/dll/win32/kernel32/client/proc.c @@ -2353,6 +2353,7 @@ CreateProcessInternalW(IN HANDLE hUserToken, SectionHandle = NULL; ProcessHandle = NULL; ThreadHandle = NULL; + ClientId.UniqueProcess = ClientId.UniqueThread = 0; BaseAddress = (PVOID)1; /* Zero out initial SxS and Application Compatibility state */