Remove redundant IID_IUnknown property
このコミットが含まれているのは:
1 親
2fe6ab9508
コミット
1a841c1c83
4ファイル変更
+2
-40
検索条件に一致するファイルはありません
@@ -238,7 +238,6 @@
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\um\objidlbase\STGTY.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\um\handleapi\Windows.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\um\synchapi\Windows.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\um\Unknwnbase\IID.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\um\Unknwnbase\IUnknown.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\um\WinBase\Windows.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Windows\um\wincodec\CLSID.cs" />
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
|
||||
|
||||
// Ported from um/Unknwnbase.h in the Windows SDK for Windows 10.0.20348.0
|
||||
// Original source is Copyright © Microsoft. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ComputeSharp.Win32;
|
||||
|
||||
internal static partial class IID
|
||||
{
|
||||
public static ref readonly Guid IID_IUnknown
|
||||
{
|
||||
get
|
||||
{
|
||||
ReadOnlySpan<byte> data = new byte[] {
|
||||
0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00,
|
||||
0x00, 0x00,
|
||||
0xC0,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x46
|
||||
};
|
||||
|
||||
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
|
||||
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,7 +136,7 @@ unsafe partial class IWICStreamExtensions
|
||||
return E_POINTER;
|
||||
}
|
||||
|
||||
if (riid->Equals(IID_IUnknown) ||
|
||||
if (riid->Equals(Windows.__uuidof<IUnknown>()) ||
|
||||
riid->Equals(IID_ISequentialStream) ||
|
||||
riid->Equals(IID_IStream))
|
||||
{
|
||||
|
||||
@@ -138,7 +138,7 @@ internal static unsafe partial class IWICStreamExtensions
|
||||
return E_POINTER;
|
||||
}
|
||||
|
||||
if (riid->Equals(IID_IUnknown) ||
|
||||
if (riid->Equals(Windows.__uuidof<IUnknown>()) ||
|
||||
riid->Equals(IID_ISequentialStream) ||
|
||||
riid->Equals(IID_IStream))
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする