diff --git a/src/Shmuelie.WinRTServer/Internal/BaseClassFactoryWrapper.cs b/src/Shmuelie.WinRTServer/Internal/BaseClassFactoryWrapper.cs index 674a972..4867b1e 100644 --- a/src/Shmuelie.WinRTServer/Internal/BaseClassFactoryWrapper.cs +++ b/src/Shmuelie.WinRTServer/Internal/BaseClassFactoryWrapper.cs @@ -38,7 +38,7 @@ internal partial class BaseClassFactoryWrapper(BaseClassFactory factory) : IClas } else { - var hr = (global::Windows.Win32.Foundation.HRESULT)StrategyBasedComWrappers.DefaultIUnknownStrategy.QueryInterface((void*)unknown, factory.Clsid, out *ppvObject); + var hr = (global::Windows.Win32.Foundation.HRESULT)StrategyBasedComWrappers.DefaultIUnknownStrategy.QueryInterface((void*)unknown, *riid, out *ppvObject); if (hr.Failed) { return hr;