Skip to content

Commit

Permalink
Remove last leftover duplicate 'IID' fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jun 1, 2024
1 parent 9a6b41e commit 2d4be6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/WinRT.Runtime/ComWrappersSupport.net5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ private static unsafe bool IsRuntimeImplementedRCW(Type objType)
private static object CreateObject(IntPtr externalComObject)
{
Guid inspectableIID = IID.IID_IInspectable;
Guid weakReferenceIID = ABI.WinRT.Interop.IWeakReference.IID;
Guid weakReferenceIID = IID.IID_IWeakReference;
IntPtr ptr = IntPtr.Zero;

try
Expand Down
4 changes: 1 addition & 3 deletions src/WinRT.Runtime/Interop/IAgileReference.net5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ static unsafe IAgileObject()

[Guid("00000146-0000-0000-C000-000000000046")]
internal sealed unsafe class IGlobalInterfaceTable
{
internal static readonly Guid IID = global::WinRT.Interop.IID.IID_IGlobalInterfaceTable;

{
public static ObjectReference<global::WinRT.Interop.IUnknownVftbl> FromAbi(IntPtr thisPtr) => ObjectReference<global::WinRT.Interop.IUnknownVftbl>.FromAbi(thisPtr, global::WinRT.Interop.IID.IID_IGlobalInterfaceTable);

private readonly ObjectReference<global::WinRT.Interop.IUnknownVftbl> _obj;
Expand Down
8 changes: 2 additions & 6 deletions src/WinRT.Runtime/Interop/IWeakReferenceSource.net5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public ComWrappers.ComInterfaceEntry[] GetExposedInterfaces()
{
new ComWrappers.ComInterfaceEntry
{
IID = ABI.WinRT.Interop.IWeakReference.IID,
IID = IID.IID_IWeakReference,
Vtable = ABI.WinRT.Interop.IWeakReference.AbiToProjectionVftablePtr
}
};
Expand Down Expand Up @@ -110,8 +110,6 @@ static class IWeakReferenceSourceMethods
[Guid("00000038-0000-0000-C000-000000000046")]
internal unsafe interface IWeakReferenceSource : global::WinRT.Interop.IWeakReferenceSource
{
internal static readonly Guid IID = global::WinRT.Interop.IID.IID_IWeakReferenceSource;

public static IntPtr AbiToProjectionVftablePtr;
static unsafe IWeakReferenceSource()
{
Expand All @@ -127,7 +125,7 @@ private static int Do_Abi_GetWeakReference(IntPtr thisPtr, IntPtr* weakReference

try
{
*weakReference = ComWrappersSupport.CreateCCWForObjectForABI(new global::WinRT.Interop.ManagedWeakReference(ComWrappersSupport.FindObject<object>(thisPtr)), IWeakReference.IID);
*weakReference = ComWrappersSupport.CreateCCWForObjectForABI(new global::WinRT.Interop.ManagedWeakReference(ComWrappersSupport.FindObject<object>(thisPtr)), global::WinRT.Interop.IID.IID_IWeakReference);
}
catch (Exception __exception__)
{
Expand All @@ -147,8 +145,6 @@ private static int Do_Abi_GetWeakReference(IntPtr thisPtr, IntPtr* weakReference
[Guid("00000037-0000-0000-C000-000000000046")]
internal unsafe interface IWeakReference : global::WinRT.Interop.IWeakReference
{
internal static readonly Guid IID = global::WinRT.Interop.IID.IID_IWeakReference;

public static IntPtr AbiToProjectionVftablePtr;
static unsafe IWeakReference()
{
Expand Down

0 comments on commit 2d4be6d

Please sign in to comment.