Alexandre Julliard : user32: Don't inherit stdin/stdout handles in explorer .

Alexandre Julliard julliard at winehq.org
Mon Jan 14 09:33:30 CST 2008


Module: wine
Branch: master
Commit: 7687f78f7133fc0891e0b76f097415f77dc10411
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7687f78f7133fc0891e0b76f097415f77dc10411

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 14 15:50:06 2008 +0100

user32: Don't inherit stdin/stdout handles in explorer.

---

 dlls/user32/win.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index e55fe20..b1dec05 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -1519,6 +1519,11 @@ HWND WINAPI GetDesktopWindow(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,




More information about the wine-cvs mailing list