Use Marshal.GetHRForException everywhere
このコミットが含まれているのは:
1 親
011accfc26
コミット
11d1ad92cf
4ファイル変更
+12
-12
検索条件に一致するファイルはありません
+3
-3
@@ -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();
|
||||
|
||||
@@ -165,7 +165,7 @@ internal unsafe struct ID3D12MemoryAllocatorFactoryImpl
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return e.HResult;
|
||||
return Marshal.GetHRForException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする