Brendan McGrath : kernelbase: Don't pass StdHandles with CREATE_NEW_CONSOLE.
Alexandre Julliard
julliard at winehq.org
Fri Feb 25 07:30:22 CST 2022
Module: wine
Branch: oldstable
Commit: 9de7231feab75e79219088dd9299e3cb6bdb1bdd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9de7231feab75e79219088dd9299e3cb6bdb1bdd
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>
(cherry picked from commit 7539dd607b5a9840d13849a0668d9e8982e20c8c)
Signed-off-by: Michael Stefaniuc <mstefani 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 992d50af0bc..e9ecf14e77d 100644
--- a/dlls/kernelbase/process.c
+++ b/dlls/kernelbase/process.c
@@ -202,7 +202,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