mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +00:00
[SERVICES]
Tiny fixes. One fix found by Serge Gautherie. svn path=/trunk/; revision=73419
This commit is contained in:
parent
3ee27dbe81
commit
3e44ec76e4
1 changed files with 2 additions and 2 deletions
|
@ -1443,7 +1443,7 @@ DWORD RSetServiceObjectSecurity(
|
||||||
{
|
{
|
||||||
PSERVICE_HANDLE hSvc;
|
PSERVICE_HANDLE hSvc;
|
||||||
PSERVICE lpService;
|
PSERVICE lpService;
|
||||||
ULONG DesiredAccess = 0;
|
ACCESS_MASK DesiredAccess = 0;
|
||||||
HANDLE hToken = NULL;
|
HANDLE hToken = NULL;
|
||||||
HKEY hServiceKey = NULL;
|
HKEY hServiceKey = NULL;
|
||||||
BOOL bDatabaseLocked = FALSE;
|
BOOL bDatabaseLocked = FALSE;
|
||||||
|
@ -6361,7 +6361,7 @@ DWORD REnumServicesStatusExW(
|
||||||
sizeof(SERVICE_STATUS));
|
sizeof(SERVICE_STATUS));
|
||||||
|
|
||||||
/* Copy the service process ID */
|
/* Copy the service process ID */
|
||||||
if ((CurrentService->Status.dwCurrentState == SERVICE_STOPPED) ||(CurrentService->lpImage == NULL))
|
if ((CurrentService->Status.dwCurrentState == SERVICE_STOPPED) || (CurrentService->lpImage == NULL))
|
||||||
lpStatusPtr->ServiceStatusProcess.dwProcessId = 0;
|
lpStatusPtr->ServiceStatusProcess.dwProcessId = 0;
|
||||||
else
|
else
|
||||||
lpStatusPtr->ServiceStatusProcess.dwProcessId = CurrentService->lpImage->dwProcessId;
|
lpStatusPtr->ServiceStatusProcess.dwProcessId = CurrentService->lpImage->dwProcessId;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue