From e4eecc98b8be1e239d28eff8e02dd3e995d2e118 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 13 Nov 2011 00:13:00 +0000 Subject: [PATCH] [SERVICES] RControlService: Initialize the callers service status information. svn path=/trunk/; revision=54370 --- reactos/base/system/services/rpcserver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/base/system/services/rpcserver.c b/reactos/base/system/services/rpcserver.c index 0ffa838aa1b..948e6817fb6 100644 --- a/reactos/base/system/services/rpcserver.c +++ b/reactos/base/system/services/rpcserver.c @@ -1095,7 +1095,6 @@ DWORD RControlService( return ERROR_INVALID_HANDLE; } - /* Check the service entry point */ lpService = hSvc->ServiceEntry; if (lpService == NULL) @@ -1132,6 +1131,11 @@ DWORD RControlService( DesiredAccess)) return ERROR_ACCESS_DENIED; + /* Return the current service status information */ + RtlCopyMemory(lpServiceStatus, + &lpService->Status, + sizeof(SERVICE_STATUS)); + if (dwControl == SERVICE_CONTROL_STOP) { /* Check if the service has dependencies running as windows