Alexandre Julliard : kernel32: Don't inherit stdin/ stdout handles in wineboot.
Alexandre Julliard
julliard at winehq.org
Mon Jan 14 09:33:29 CST 2008
Module: wine
Branch: master
Commit: 9c00a78da52dc14acdb391ae02ec10a63d3b85ab
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9c00a78da52dc14acdb391ae02ec10a63d3b85ab
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Jan 14 15:49:56 2008 +0100
kernel32: Don't inherit stdin/stdout handles in wineboot.
---
dlls/kernel32/process.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 7a25f39..691e0a7 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -797,6 +797,11 @@ static HANDLE start_wineboot(void)
memset( &si, 0, sizeof(si) );
si.cb = sizeof(si);
+ si.dwFlags = STARTF_USESTDHANDLES;
+ si.hStdInput = 0;
+ si.hStdOutput = 0;
+ si.hStdError = GetStdHandle( STD_ERROR_HANDLE );
+
GetSystemDirectoryW( cmdline, MAX_PATH );
lstrcatW( cmdline, command_line );
if (CreateProcessW( NULL, cmdline, NULL, NULL, FALSE, DETACHED_PROCESS, NULL, NULL, &si, &pi ))
More information about the wine-cvs
mailing list