Skip to content

Commit a68d56d

Browse files
committed
Ugh
1 parent b5b9ec1 commit a68d56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App.CsWin32/Windows.Win32.ComPtr.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public readonly ComPtr<U> As<U>() where U : unmanaged
5252
public readonly HRESULT CoCreateInstance<U>(CLSCTX dwClsContext = CLSCTX.CLSCTX_LOCAL_SERVER) where U : unmanaged
5353
{
5454
Guid clsid = typeof(U).GUID, iid = typeof(T).GUID;
55-
return PInvoke.CoCreateInstance(&clsid, null, dwClsContext, &iid, (void**)&_ptr);
55+
return PInvoke.CoCreateInstance(&clsid, null, dwClsContext, &iid, (void**)this.GetAddressOf());
5656
}
5757

5858
[MethodImpl(MethodImplOptions.AggressiveInlining)]

0 commit comments

Comments
 (0)