[WINLOGON] Prevent shell restart when the user is logged off
authorEric Kohl <eric.kohl@reactos.org>
Tue, 22 May 2018 12:36:55 +0000 (14:36 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 22 May 2018 12:36:55 +0000 (14:36 +0200)
base/system/winlogon/sas.c

index e9861de..fe558c4 100644 (file)
@@ -1372,7 +1372,9 @@ SASWindowProc(
                 case LN_SHELL_EXITED:
                 {
                     /* lParam is the exit code */
-                    if(lParam != 1)
+                    if (lParam != 1 &&
+                        Session->LogonState != STATE_LOGGED_OFF &&
+                        Session->LogonState != STATE_LOGGED_OFF_SAS)
                     {
                         SetTimer(hwndDlg, 1, 1000, NULL);
                     }