From 3a2e6d102fd947be3d12e5feb72e0a3a499309dc Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Wed, 27 Feb 2013 17:18:21 +0000 Subject: [PATCH] [win32k] - Do not set the current thread desktop automatically the first time CreateDesktop is called. The caller is supposed to call SetThreadDesktop to specify which desktop should be used svn path=/trunk/; revision=58376 --- reactos/win32ss/user/ntuser/desktop.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/reactos/win32ss/user/ntuser/desktop.c b/reactos/win32ss/user/ntuser/desktop.c index c876dfe429c..c67f9933ea4 100644 --- a/reactos/win32ss/user/ntuser/desktop.c +++ b/reactos/win32ss/user/ntuser/desktop.c @@ -1294,8 +1294,6 @@ NtUserCreateDesktop( RETURN(NULL); } - if (!ptiCurrent->rpdesk) IntSetThreadDesktop(hdesk,FALSE); - /* Get the desktop window class. The thread desktop does not belong to any desktop * so the classes created there (including the desktop class) are allocated in the shared heap * It would cause problems if we used a class that belongs to the caller