Reset a services thread and process ids when the service has been stopped. Fixes one more test.

svn path=/trunk/; revision=45374
This commit is contained in:
Eric Kohl 2010-02-01 19:45:50 +00:00
parent 5024029061
commit 5499d3c924

View file

@ -644,6 +644,14 @@ DWORD RControlService(
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,
&lpService->Status,