[NTOS:SE] SepSinglePrivilegeCheck doesn't expect a NT status code value
authorGeorge Bișoc <george.bisoc@reactos.org>
Sun, 22 Aug 2021 09:31:57 +0000 (11:31 +0200)
committerGeorge Bișoc <george.bisoc@reactos.org>
Sun, 22 Aug 2021 09:31:57 +0000 (11:31 +0200)
Fix a wrong returned datatype of the function, as SepSinglePrivilegeCheck calls the internal private SepPrivilegeCheck function which returns a BOOLEAN value.

ntoskrnl/se/priv.c

index 0a1e83a..a2ba9f8 100644 (file)
@@ -183,7 +183,7 @@ SepPrivilegeCheck(
  * Returns TRUE if the required privilege exists and that it matches
  * with the one from the access token, FALSE otherwise.
  */
-NTSTATUS
+BOOLEAN
 NTAPI
 SepSinglePrivilegeCheck(
     _In_ LUID PrivilegeValue,