Switch to TerraFX.Interop.Windows in unit tests
このコミットが含まれているのは:
1 親
cc56d748c7
コミット
96d42f94c3
19ファイル変更
+120
-183
検索条件に一致するファイルはありません
@@ -1,6 +1,6 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Win32;
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
namespace ComputeSharp.Tests.Extensions;
|
||||
|
||||
@@ -17,7 +17,7 @@ internal static class ComPtrExtensions
|
||||
/// <returns>The reference count value for <paramref name="ptr"/>.</returns>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static unsafe uint GetReferenceCount<T>(this in ComPtr<T> ptr)
|
||||
where T : unmanaged
|
||||
where T : unmanaged, IUnknown.Interface
|
||||
{
|
||||
if (ptr.Get() is null)
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする