Author: ekohl
Date: Sun Nov 13 00:13:00 2011
New Revision: 54370

URL: http://svn.reactos.org/svn/reactos?rev=54370&view=rev
Log:
[SERVICES]
RControlService: Initialize the callers service status information. 

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/rpcserver.c?rev=54370&r1=54369&r2=54370&view=diff
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Sun Nov 13 
00:13:00 2011
@@ -1095,7 +1095,6 @@
         return ERROR_INVALID_HANDLE;
     }
 
-
     /* Check the service entry point */
     lpService = hSvc->ServiceEntry;
     if (lpService == NULL)
@@ -1131,6 +1130,11 @@
     if (!RtlAreAllAccessesGranted(hSvc->Handle.DesiredAccess,
                                   DesiredAccess))
         return ERROR_ACCESS_DENIED;
+
+    /* Return the current service status information */
+    RtlCopyMemory(lpServiceStatus,
+                  &lpService->Status,
+                  sizeof(SERVICE_STATUS));
 
     if (dwControl == SERVICE_CONTROL_STOP)
     {


Reply via email to