mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
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:
parent
5024029061
commit
5499d3c924
1 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue