Commit 7687f78f authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 9c00a78d
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment