From e1e646587811c21db61d0586a7f8df3c17b6f58f Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Fri, 14 Jun 2024 20:34:43 +0100 Subject: [PATCH] Ignore StartProcess stdout & stderr handles --- dlls/kernelbase/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernelbase/process.c b/dlls/kernelbase/process.c index aebc647b1751..f60cc788f9bf 100644 --- a/dlls/kernelbase/process.c +++ b/dlls/kernelbase/process.c @@ -205,8 +205,8 @@ static RTL_USER_PROCESS_PARAMETERS *create_process_params( const WCHAR *filename if (startup->dwFlags & STARTF_USESTDHANDLES) { params->hStdInput = startup->hStdInput; - params->hStdOutput = startup->hStdOutput; - params->hStdError = startup->hStdError; + params->hStdOutput = INVALID_HANDLE_VALUE; + params->hStdError = INVALID_HANDLE_VALUE; } else if (flags & (DETACHED_PROCESS | CREATE_NEW_CONSOLE)) {