[SCM]: Fix SCM shutdown. Now all services are stopped (in my working copy with the...
authorSir Richard <sir_richard@svn.reactos.org>
Wed, 10 Mar 2010 18:28:45 +0000 (18:28 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Wed, 10 Mar 2010 18:28:45 +0000 (18:28 +0000)
svn path=/trunk/; revision=46068

reactos/base/system/services/services.c

index 44ee8f3..2d97ce4 100644 (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;