We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5b9ec1 commit a68d56dCopy full SHA for a68d56d
src/Files.App.CsWin32/Windows.Win32.ComPtr.cs
@@ -52,7 +52,7 @@ public readonly ComPtr<U> As<U>() where U : unmanaged
52
public readonly HRESULT CoCreateInstance<U>(CLSCTX dwClsContext = CLSCTX.CLSCTX_LOCAL_SERVER) where U : unmanaged
53
{
54
Guid clsid = typeof(U).GUID, iid = typeof(T).GUID;
55
- return PInvoke.CoCreateInstance(&clsid, null, dwClsContext, &iid, (void**)&_ptr);
+ return PInvoke.CoCreateInstance(&clsid, null, dwClsContext, &iid, (void**)this.GetAddressOf());
56
}
57
58
[MethodImpl(MethodImplOptions.AggressiveInlining)]
0 commit comments