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@redmandi.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Brendan McGrath 2021-06-25 07:01:56 +10:00 committed by Alexandre Julliard
parent 61024aa12f
commit 7539dd607b
1 changed files with 1 additions and 1 deletions

View File

@ -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;