From 6b5a2637422085ebf90f6edf6906f1ea307faa48 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 12 Nov 2020 19:56:38 +0100 Subject: [PATCH] kernelbase: Remove no longer needed console handle handling from create_process_params. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/kernelbase/process.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dlls/kernelbase/process.c b/dlls/kernelbase/process.c index 57f0721f397..7689e1adf28 100644 --- a/dlls/kernelbase/process.c +++ b/dlls/kernelbase/process.c @@ -215,20 +215,6 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( const WCHAR *filename params->hStdError = NtCurrentTeb()->Peb->ProcessParameters->hStdError; } - if (flags & CREATE_NEW_CONSOLE) - { - /* this is temporary (for console handles). We have no way to control that the handle is invalid in child process otherwise */ - if (is_console_handle(params->hStdInput)) params->hStdInput = INVALID_HANDLE_VALUE; - if (is_console_handle(params->hStdOutput)) params->hStdOutput = INVALID_HANDLE_VALUE; - if (is_console_handle(params->hStdError)) params->hStdError = INVALID_HANDLE_VALUE; - } - else - { - if (is_console_handle(params->hStdInput)) params->hStdInput = (HANDLE)((UINT_PTR)params->hStdInput & ~3); - if (is_console_handle(params->hStdOutput)) params->hStdOutput = (HANDLE)((UINT_PTR)params->hStdOutput & ~3); - if (is_console_handle(params->hStdError)) params->hStdError = (HANDLE)((UINT_PTR)params->hStdError & ~3); - } - params->dwX = startup->dwX; params->dwY = startup->dwY; params->dwXSize = startup->dwXSize;