mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[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:
@@ -1542,6 +1542,7 @@ SASWindowProc(
|
||||
{
|
||||
if (!GetSetupType())
|
||||
UnregisterHotKeys(Session, hwndDlg);
|
||||
PostQuitMessage(0);
|
||||
return TRUE;
|
||||
}
|
||||
case WM_SETTINGCHANGE:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user