Skip to content

Commit

Permalink
Enable marshaling of restricted error info to System.Exception for Un…
Browse files Browse the repository at this point in the history
…handledException handler (#1228)
  • Loading branch information
Scottj1s authored Jul 29, 2022
1 parent 227696b commit a59ba54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WinRT.Runtime/ExceptionHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void Throw(int hr)
}
}

public static Exception GetExceptionForHR(int hr) => hr >= 0 ? null : GetExceptionForHR(hr, false, out _);
public static Exception GetExceptionForHR(int hr) => hr >= 0 ? null : GetExceptionForHR(hr, true, out _);

private static Exception GetExceptionForHR(int hr, bool useGlobalErrorState, out bool restoredExceptionFromGlobalState)
{
Expand Down

0 comments on commit a59ba54

Please sign in to comment.