Use Marshal.GetHRForException everywhere

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-07 12:56:44 +02:00
1 親 011accfc26
コミット 11d1ad92cf
4ファイル変更
+12 -12

検索条件に一致するファイルはありません

@@ -131,7 +131,7 @@ unsafe partial struct D2D1TransformMapperImpl
}
catch (Exception e)
{
return e.HResult;
return Marshal.GetHRForException(e);
}
*outputRect = output.ToRECT();
@@ -163,7 +163,7 @@ unsafe partial struct D2D1TransformMapperImpl
}
catch (Exception e)
{
return e.HResult;
return Marshal.GetHRForException(e);
}
for (int i = 0; i < (int)inputRectsCount; i++)
@@ -192,7 +192,7 @@ unsafe partial struct D2D1TransformMapperImpl
}
catch (Exception e)
{
return e.HResult;
return Marshal.GetHRForException(e);
}
*invalidOutputRect = invalidOutput.ToRECT();