Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
  • Loading branch information
AaronRobinsonMSFT authored Jun 24, 2022
commit 41872ed12f3f08249e629bf0b7cd26181eb7f625
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ private static Exception GetExceptionFromNtStatus(int status)
return new OutOfMemoryException();

uint win32ErrorCode = Interop.Advapi32.LsaNtStatusToWinError((uint)status);
return new SecurityException(Marshal.GetPInvokeErrorMessage(unchecked((int)win32ErrorCode)));
return new SecurityException(Marshal.GetPInvokeErrorMessage((int)win32ErrorCode));
}

private static SafeAccessTokenHandle GetCurrentToken(TokenAccessLevels desiredAccess, bool threadOnly, out bool isImpersonating, out int hr)
Expand Down