mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 04:03:05 +00:00
[SERVICES]
RControlService: Initialize the callers service status information. svn path=/trunk/; revision=54370
This commit is contained in:
parent
2c472c9d01
commit
e4eecc98b8
1 changed files with 5 additions and 1 deletions
|
@ -1095,7 +1095,6 @@ DWORD RControlService(
|
||||||
return ERROR_INVALID_HANDLE;
|
return ERROR_INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Check the service entry point */
|
/* Check the service entry point */
|
||||||
lpService = hSvc->ServiceEntry;
|
lpService = hSvc->ServiceEntry;
|
||||||
if (lpService == NULL)
|
if (lpService == NULL)
|
||||||
|
@ -1132,6 +1131,11 @@ DWORD RControlService(
|
||||||
DesiredAccess))
|
DesiredAccess))
|
||||||
return ERROR_ACCESS_DENIED;
|
return ERROR_ACCESS_DENIED;
|
||||||
|
|
||||||
|
/* Return the current service status information */
|
||||||
|
RtlCopyMemory(lpServiceStatus,
|
||||||
|
&lpService->Status,
|
||||||
|
sizeof(SERVICE_STATUS));
|
||||||
|
|
||||||
if (dwControl == SERVICE_CONTROL_STOP)
|
if (dwControl == SERVICE_CONTROL_STOP)
|
||||||
{
|
{
|
||||||
/* Check if the service has dependencies running as windows
|
/* Check if the service has dependencies running as windows
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue