Brendan McGrath : kernelbase: Don't pass StdHandles with CREATE_NEW_CONSOLE.

Alexandre Julliard julliard at winehq.org
Fri Jun 25 16:29:08 CDT 2021


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

Author: Brendan McGrath <brendan at redmandi.com>
Date:   Fri Jun 25 07:01:56 2021 +1000

kernelbase: Don't pass StdHandles with CREATE_NEW_CONSOLE.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51264
Signed-off-by: Brendan McGrath <brendan at redmandi.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/kernelbase/process.c b/dlls/kernelbase/process.c
index 924fa733e5b..7296e085382 100644
--- a/dlls/kernelbase/process.c
+++ b/dlls/kernelbase/process.c
@@ -198,7 +198,7 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( const WCHAR *filename
         params->hStdOutput = startup->hStdOutput;
         params->hStdError  = startup->hStdError;
     }
-    else if (flags & DETACHED_PROCESS)
+    else if (flags & (DETACHED_PROCESS | CREATE_NEW_CONSOLE))
     {
         params->hStdInput  = INVALID_HANDLE_VALUE;
         params->hStdOutput = INVALID_HANDLE_VALUE;




More information about the wine-cvs mailing list