mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:OB] Correctly check SeSinglePrivilegeCheck() return value (#1323)
SeSinglePrivilegeCheck() returns a BOOLEAN, not a NTSTATUS. CORE-14271
This commit is contained in:
parent
1e05f9cc32
commit
0483a5a380
1 changed files with 4 additions and 3 deletions
|
@ -1427,9 +1427,10 @@ NtMakePermanentObject(IN HANDLE ObjectHandle)
|
|||
PAGED_CODE();
|
||||
|
||||
/* Make sure that the caller has SeCreatePermanentPrivilege */
|
||||
Status = SeSinglePrivilegeCheck(SeCreatePermanentPrivilege,
|
||||
PreviousMode);
|
||||
if (!NT_SUCCESS(Status)) return STATUS_PRIVILEGE_NOT_HELD;
|
||||
if (!SeSinglePrivilegeCheck(SeCreatePermanentPrivilege, PreviousMode))
|
||||
{
|
||||
return STATUS_PRIVILEGE_NOT_HELD;
|
||||
}
|
||||
|
||||
/* Reference the object */
|
||||
Status = ObReferenceObjectByHandle(ObjectHandle,
|
||||
|
|
Loading…
Reference in a new issue