[WINLOGON] SASWindowProc(): Call PostQuitMessage(0) on WM_DESTROY

Now the WinMain() message loop correctly exits and we get to perform
last-time cleanup. However, the main thread must not exit (except under
certain conditions, not yet implemented), so we Sleep for an infinite
amount of time.
This commit is contained in:
Hermès Bélusca-Maïto
2025-07-14 20:22:36 +02:00
parent 0e6c0af354
commit 627f8da3cd
2 changed files with 3 additions and 1 deletions

View File

@@ -1542,6 +1542,7 @@ SASWindowProc(
{
if (!GetSetupType())
UnregisterHotKeys(Session, hwndDlg);
PostQuitMessage(0);
return TRUE;
}
case WM_SETTINGCHANGE:

View File

@@ -614,6 +614,7 @@ WinMain(
CleanupNotifications();
/* We never go there */
// TODO: Shutdown if we are in session 0, otherwise let the process terminate.
SleepEx(INFINITE, FALSE);
return 0;
}