Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -314,15 +314,22 @@ public int QueryInterface(in Guid riid, out IntPtr ppvObject)
}
else
{
Guid riidLocal = riid;
switch (customQueryInterface.GetInterface(ref riidLocal, out ppvObject))
try
{
case CustomQueryInterfaceResult.Handled:
return HResults.S_OK;
case CustomQueryInterfaceResult.NotHandled:
break;
case CustomQueryInterfaceResult.Failed:
return HResults.COR_E_INVALIDCAST;
Guid riidLocal = riid;
switch (customQueryInterface.GetInterface(ref riidLocal, out ppvObject))
{
case CustomQueryInterfaceResult.Handled:
return HResults.S_OK;
case CustomQueryInterfaceResult.NotHandled:
break;
case CustomQueryInterfaceResult.Failed:
return HResults.COR_E_INVALIDCAST;
}
}
catch (Exception ex)
{
return Marshal.GetHRForException(ex);
}
}
}
Expand Down
Loading