[KERNEL32]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 4 May 2013 09:23:52 +0000 (09:23 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 4 May 2013 09:23:52 +0000 (09:23 +0000)
Parameters of RtlAcquirePrivilege are not booleans

svn path=/trunk/; revision=58919

reactos/dll/win32/kernel32/client/job.c
reactos/dll/win32/kernel32/client/utils.c

index e5a20c0..cdefe61 100644 (file)
@@ -291,7 +291,7 @@ SetInformationJobObject(IN HANDLE hJob,
         if (LocalInfo.BasicLimitInformation.LimitFlags &
             JOB_OBJECT_LIMIT_WORKINGSET)
         {
-            Status = RtlAcquirePrivilege(&Privilege, TRUE, FALSE, &State);
+            Status = RtlAcquirePrivilege(&Privilege, 1, 0, &State);
         }
     }
 
index 3cf44f0..089bda3 100644 (file)
@@ -627,7 +627,7 @@ BasepIsRealtimeAllowed(IN BOOLEAN Keep)
     PVOID State;
     NTSTATUS Status;
 
-    Status = RtlAcquirePrivilege(&Privilege, TRUE, FALSE, &State);
+    Status = RtlAcquirePrivilege(&Privilege, 1, 0, &State);
     if (!NT_SUCCESS(Status)) return NULL;
 
     if (Keep)