mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:02:56 +00:00
[WINLOGON] Prevent shell restart when the user is logged off
This commit is contained in:
parent
b784c7bfba
commit
1f0fe38634
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue