https://git.reactos.org/?p=reactos.git;a=commitdiff;h=84f7bee18f5842c63b0ad4...
commit 84f7bee18f5842c63b0ad4389af8b7f49e375738 Author: George Bișoc george.bisoc@reactos.org AuthorDate: Sun Aug 22 11:31:57 2021 +0200 Commit: George Bișoc george.bisoc@reactos.org CommitDate: Sun Aug 22 11:31:57 2021 +0200
[NTOS:SE] SepSinglePrivilegeCheck doesn't expect a NT status code value
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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/se/priv.c b/ntoskrnl/se/priv.c index 0a1e83a89e5..a2ba9f8ad64 100644 --- a/ntoskrnl/se/priv.c +++ b/ntoskrnl/se/priv.c @@ -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,