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();
+1 -1
ファイルの表示
@@ -165,7 +165,7 @@ internal unsafe struct ID3D12MemoryAllocatorFactoryImpl
}
catch (Exception e)
{
return e.HResult;
return Marshal.GetHRForException(e);
}
}
}
+2 -2
ファイルの表示
@@ -373,7 +373,7 @@ unsafe partial class IWICStreamExtensions
}
catch (Exception ex)
{
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}
@@ -454,7 +454,7 @@ unsafe partial class IWICStreamExtensions
}
catch (Exception ex)
{
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}
+6 -6
ファイルの表示
@@ -380,7 +380,7 @@ internal static unsafe partial class IWICStreamExtensions
}
catch (Exception ex)
{
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}
@@ -416,7 +416,7 @@ internal static unsafe partial class IWICStreamExtensions
}
catch (Exception ex)
{
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}
@@ -454,7 +454,7 @@ internal static unsafe partial class IWICStreamExtensions
}
catch (Exception ex)
{
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}
@@ -475,7 +475,7 @@ internal static unsafe partial class IWICStreamExtensions
}
catch (Exception ex)
{
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}
@@ -498,7 +498,7 @@ internal static unsafe partial class IWICStreamExtensions
}
catch (Exception ex)
{
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}
@@ -587,7 +587,7 @@ internal static unsafe partial class IWICStreamExtensions
pstatstg->pwcsName = null;
}
return ex.HResult;
return Marshal.GetHRForException(ex);
}
}