[WINLOGON] Prevent shell restart when the user is logged off

This commit is contained in:
Eric Kohl 2018-05-22 14:36:55 +02:00
parent b784c7bfba
commit 1f0fe38634

View file

@ -1372,7 +1372,9 @@ SASWindowProc(
case LN_SHELL_EXITED: case LN_SHELL_EXITED:
{ {
/* lParam is the exit code */ /* 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); SetTimer(hwndDlg, 1, 1000, NULL);
} }