Eric Pouech : kernelbase: Don't hardcode magic constants.

Alexandre Julliard julliard at winehq.org
Mon Dec 20 15:42:39 CST 2021


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

Author: Eric Pouech <eric.pouech at gmail.com>
Date:   Sat Dec 18 09:13:12 2021 +0100

kernelbase: Don't hardcode magic constants.

Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernelbase/process.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/kernelbase/process.c b/dlls/kernelbase/process.c
index 0e4a3eb9b6b..12187b92e5c 100644
--- a/dlls/kernelbase/process.c
+++ b/dlls/kernelbase/process.c
@@ -33,6 +33,7 @@
 
 #include "kernelbase.h"
 #include "wine/debug.h"
+#include "wine/condrv.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(process);
 
@@ -189,7 +190,7 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( const WCHAR *filename
     RtlFreeUnicodeString( &newdirW );
 
     if (flags & CREATE_NEW_PROCESS_GROUP) params->ConsoleFlags = 1;
-    if (flags & CREATE_NEW_CONSOLE) params->ConsoleHandle = (HANDLE)1; /* KERNEL32_CONSOLE_ALLOC */
+    if (flags & CREATE_NEW_CONSOLE) params->ConsoleHandle = CONSOLE_HANDLE_ALLOC;
     else if (!(flags & DETACHED_PROCESS)) params->ConsoleHandle = NtCurrentTeb()->Peb->ProcessParameters->ConsoleHandle;
 
     if (startup->dwFlags & STARTF_USESTDHANDLES)




More information about the wine-cvs mailing list