Skip to content

Commit

Permalink
Cast to RIID, not to factory CLSID
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuelie committed Aug 27, 2024
1 parent 4d107a5 commit 14c7122
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 14c7122

Please sign in to comment.