From 4dfa7d8a06e20d9888398298e03c20fac89a9fdf Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Fri, 13 Jan 2017 01:59:13 +0100 Subject: [PATCH] kernel32: Always start debugger on WinSta0. --- dlls/kernelbase/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/kernelbase/debug.c b/dlls/kernelbase/debug.c index cbefc0c8733..b37faaa0003 100644 --- a/dlls/kernelbase/debug.c +++ b/dlls/kernelbase/debug.c @@ -625,6 +625,7 @@ static BOOL start_debugger( EXCEPTION_POINTERS *epointers, HANDLE event ) TRACE( "Starting debugger %s\n", debugstr_w(cmdline) ); memset( &startup, 0, sizeof(startup) ); startup.cb = sizeof(startup); + startup.lpDesktop = (WCHAR*)L"WinSta0"; startup.dwFlags = STARTF_USESHOWWINDOW; startup.wShowWindow = SW_SHOWNORMAL; ret = CreateProcessW( NULL, cmdline, NULL, NULL, TRUE, CREATE_UNICODE_ENVIRONMENT, env, NULL, &startup, &info ); -- 2.45.2