[ros-diffs] [ekohl] 45374: Reset a services thread and process ids when the service has been stopped. Fixes one more test.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Mon Feb 1 20:45:50 CET 2010


Author: ekohl
Date: Mon Feb  1 20:45:50 2010
New Revision: 45374

URL: http://svn.reactos.org/svn/reactos?rev=45374&view=rev
Log:
Reset a services thread and process ids when the service has been stopped. Fixes one more test.

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

Modified: trunk/reactos/base/system/services/rpcserver.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcserver.c?rev=45374&r1=45373&r2=45374&view=diff
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Mon Feb  1 20:45:50 2010
@@ -643,6 +643,14 @@
 
     if ((dwError == ERROR_SUCCESS) && (pcbBytesNeeded))
         dwError = ERROR_DEPENDENT_SERVICES_RUNNING;
+
+    if (dwError == ERROR_SUCCESS &&
+        dwControl == SERVICE_CONTROL_STOP && 
+        lpServiceStatus->dwCurrentState == SERVICE_STOPPED)
+    {
+        lpService->ProcessId = 0; /* FIXME */
+        lpService->ThreadId = 0;
+    }
 
     /* Return service status information */
     RtlCopyMemory(lpServiceStatus,




More information about the Ros-diffs mailing list