mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[UDFS] Correctly check SeSinglePrivilegeCheck() return value
SeSinglePrivilegeCheck() returns a BOOLEAN, not a NTSTATUS. CORE-14271
This commit is contained in:
parent
1b473cbeee
commit
17af7f0c27
1 changed files with 3 additions and 3 deletions
|
@ -742,9 +742,9 @@ op_vol_accs_dnd:
|
|||
|
||||
// we should check appropriate privilege if OpenForBackup requested
|
||||
if(OpenForBackup) {
|
||||
RC = SeSinglePrivilegeCheck(SeExports->SeBackupPrivilege, UserMode);
|
||||
if(!NT_SUCCESS(RC))
|
||||
try_return(RC);
|
||||
if (!SeSinglePrivilegeCheck(SeExports->SeBackupPrivilege, UserMode)) {
|
||||
try_return(RC = STATUS_PRIVILEGE_NOT_HELD);
|
||||
}
|
||||
}
|
||||
|
||||
// The FSD might wish to implement the open-by-id option. The "id"
|
||||
|
|
Loading…
Reference in a new issue