[SCM]: Fix SCM shutdown. Now all services are stopped (in my working copy with the CSRSS shutdown code).

svn path=/trunk/; revision=46068
This commit is contained in:
Sir Richard 2010-03-10 18:28:45 +00:00
parent 30cee65672
commit c240396ad5

View file

@ -279,7 +279,7 @@ ShutdownHandlerRoutine(DWORD dwCtrlType)
{
DPRINT1("ShutdownHandlerRoutine() called\n");
if (dwCtrlType == CTRL_SHUTDOWN_EVENT)
if (dwCtrlType & (CTRL_SHUTDOWN_EVENT | CTRL_LOGOFF_EVENT))
{
DPRINT1("Shutdown event received!\n");
ScmShutdown = TRUE;