Author: gadamopoulos
Date: Sat Mar 16 09:09:53 2013
New Revision: 58513
URL:
http://svn.reactos.org/svn/reactos?rev=58513&view=rev
Log:
[win32csr]
- When we close a window during shutdown, switch to the desktop of the window
CORE-5439
Modified:
trunk/reactos/win32ss/user/win32csr/exitros.c
Modified: trunk/reactos/win32ss/user/win32csr/exitros.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/win32csr/exit…
==============================================================================
--- trunk/reactos/win32ss/user/win32csr/exitros.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/win32csr/exitros.c [iso-8859-1] Sat Mar 16 09:09:53 2013
@@ -61,6 +61,7 @@
WPARAM wParam;
LPARAM lParam;
HDESK Desktop;
+ HDESK OldDesktop;
DWORD StartTime;
DWORD QueryResult;
HWND Dlg;
@@ -412,7 +413,12 @@
return FALSE;
}
+ Context->OldDesktop = GetThreadDesktop(GetCurrentThreadId());
+ SwitchDesktop(Context->Desktop);
+
EnumDesktopWindows(Context->Desktop, NotifyTopLevelEnum, lParam);
+
+ SwitchDesktop(Context->OldDesktop);
CloseDesktop(Context->Desktop);