[UDFS] Correctly check SeSinglePrivilegeCheck() return value

SeSinglePrivilegeCheck() returns a BOOLEAN, not a NTSTATUS.

CORE-14271
This commit is contained in:
Serge Gautherie 2019-01-30 01:54:42 +01:00 committed by Pierre Schweitzer
parent 1b473cbeee
commit 17af7f0c27

View file

@ -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"