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/rpcse…
==============================================================================
--- 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,