diff --git a/dlls/user/user_main.c b/dlls/user/user_main.c index a1f6790c2a2..7cca47c43e9 100644 --- a/dlls/user/user_main.c +++ b/dlls/user/user_main.c @@ -204,7 +204,7 @@ static void thread_detach(void) WDML_NotifyThreadDetach(); - WIN_DestroyThreadWindows( GetDesktopWindow() ); + WIN_DestroyThreadWindows( get_user_thread_info()->desktop ); CloseHandle( get_user_thread_info()->server_queue ); exiting_thread_id = 0;