mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 14:08:22 +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
|
// we should check appropriate privilege if OpenForBackup requested
|
||||||
if(OpenForBackup) {
|
if(OpenForBackup) {
|
||||||
RC = SeSinglePrivilegeCheck(SeExports->SeBackupPrivilege, UserMode);
|
if (!SeSinglePrivilegeCheck(SeExports->SeBackupPrivilege, UserMode)) {
|
||||||
if(!NT_SUCCESS(RC))
|
try_return(RC = STATUS_PRIVILEGE_NOT_HELD);
|
||||||
try_return(RC);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The FSD might wish to implement the open-by-id option. The "id"
|
// The FSD might wish to implement the open-by-id option. The "id"
|
||||||
|
|
Loading…
Reference in a new issue