[MSGINA]
authorEric Kohl <eric.kohl@reactos.org>
Wed, 22 Jul 2015 20:28:51 +0000 (20:28 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Wed, 22 Jul 2015 20:28:51 +0000 (20:28 +0000)
Show shutdown dialog at the logon screen if the user wants to shutdown. Patch by Jared Smudde.
CORE-9919 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=68562

reactos/dll/win32/msgina/gui.c

index 3da57d0..3ac474d 100644 (file)
@@ -1161,7 +1161,8 @@ LoggedOutWindowProc(
                     return TRUE;
 
                 case IDC_SHUTDOWN:
-                    EndDialog(hwndDlg, WLX_SAS_ACTION_SHUTDOWN);
+                    if (OnShutDown(hwndDlg, pgContext) == IDOK)
+                        EndDialog(hwndDlg, pgContext->nShutdownAction);
                     return TRUE;
             }
             break;