From: Eric Kohl Date: Mon, 1 Feb 2010 19:45:50 +0000 (+0000) Subject: Reset a services thread and process ids when the service has been stopped. Fixes... X-Git-Tag: backups/jcatena-branch@60647^2~131 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5499d3c924b5570d1d75e51048ee88bf9b9aaca6 Reset a services thread and process ids when the service has been stopped. Fixes one more test. svn path=/trunk/; revision=45374 --- diff --git a/reactos/base/system/services/rpcserver.c b/reactos/base/system/services/rpcserver.c index a5b7f9f1ea6..193cb9b946e 100644 --- a/reactos/base/system/services/rpcserver.c +++ b/reactos/base/system/services/rpcserver.c @@ -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,