[MSGINA][SHELL32]: Now that CORE-11979 is fixed, automatically close the logoff/shutd...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 17 Sep 2016 22:44:50 +0000 (22:44 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 17 Sep 2016 22:44:50 +0000 (22:44 +0000)
svn path=/trunk/; revision=72720

reactos/dll/win32/msgina/shutdown.c
reactos/dll/win32/shell32/dialogs/dialogs.cpp

index a515f2f..0eb6f6c 100644 (file)
@@ -299,6 +299,13 @@ ExitWindowsDialogShellProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
             return TRUE;
         }
 
+        case WM_ACTIVATE:
+        {
+            if (LOWORD(wParam) == WA_INACTIVE)
+                EndDialog(hWnd, 0);
+            return FALSE;
+        }
+
         case WM_PAINT:
         {
             PAINTSTRUCT ps;
index 99f49eb..d1990dd 100644 (file)
@@ -900,6 +900,13 @@ INT_PTR CALLBACK LogOffDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
             EndDialog(hwnd, IDCANCEL);
             break;
 
+        case WM_ACTIVATE:
+        {
+            if (LOWORD(wParam) == WA_INACTIVE)
+                EndDialog(hwnd, 0);
+            return FALSE;
+        }
+
         case WM_COMMAND:
             switch (LOWORD(wParam))
             {