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

sir_richard at svn.reactos.org sir_richard at svn.reactos.org
Wed Mar 10 19:28:45 CET 2010


Author: sir_richard
Date: Wed Mar 10 19:28:45 2010
New Revision: 46068

URL: http://svn.reactos.org/svn/reactos?rev=46068&view=rev
Log:
[SCM]: Fix SCM shutdown. Now all services are stopped (in my working copy with the CSRSS shutdown code).

Modified:
    trunk/reactos/base/system/services/services.c

Modified: trunk/reactos/base/system/services/services.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/services.c?rev=46068&r1=46067&r2=46068&view=diff
==============================================================================
--- trunk/reactos/base/system/services/services.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/services.c [iso-8859-1] Wed Mar 10 19:28:45 2010
@@ -279,7 +279,7 @@
 {
     DPRINT1("ShutdownHandlerRoutine() called\n");
 
-    if (dwCtrlType == CTRL_SHUTDOWN_EVENT)
+    if (dwCtrlType & (CTRL_SHUTDOWN_EVENT | CTRL_LOGOFF_EVENT))
     {
         DPRINT1("Shutdown event received!\n");
         ScmShutdown = TRUE;




More information about the Ros-diffs mailing list