mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
tst: passthrough: EnableBackupRestorePrivileges: minor fix
This commit is contained in:
@ -1269,7 +1269,11 @@ static NTSTATUS EnableBackupRestorePrivileges(VOID)
|
||||
return FspNtStatusFromWin32(GetLastError());
|
||||
|
||||
if (!AdjustTokenPrivileges(Token, FALSE, &Privileges.P, 0, 0, 0))
|
||||
{
|
||||
CloseHandle(Token);
|
||||
|
||||
return FspNtStatusFromWin32(GetLastError());
|
||||
}
|
||||
|
||||
CloseHandle(Token);
|
||||
|
||||
|
Reference in New Issue
Block a user