mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[WINLOGON] Prevent shell restart when the user is logged off
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user