[SERVICES]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 3 Dec 2016 13:54:11 +0000 (13:54 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 3 Dec 2016 13:54:11 +0000 (13:54 +0000)
Tiny fixes.
One fix found by Serge Gautherie.

svn path=/trunk/; revision=73419

reactos/base/system/services/rpcserver.c

index 7d206d4..a3c44a1 100644 (file)
@@ -1443,7 +1443,7 @@ DWORD RSetServiceObjectSecurity(
 {
     PSERVICE_HANDLE hSvc;
     PSERVICE lpService;
-    ULONG DesiredAccess = 0;
+    ACCESS_MASK DesiredAccess = 0;
     HANDLE hToken = NULL;
     HKEY hServiceKey = NULL;
     BOOL bDatabaseLocked = FALSE;
@@ -6361,7 +6361,7 @@ DWORD REnumServicesStatusExW(
                    sizeof(SERVICE_STATUS));
 
             /* 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;
             else
                 lpStatusPtr->ServiceStatusProcess.dwProcessId = CurrentService->lpImage->dwProcessId;