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 055a9f1 commit 797274bCopy full SHA for 797274b
src/coreclr/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs
@@ -123,7 +123,8 @@ private static object GetClassFactoryForType(ComActivationContext cxt)
123
throw new NotSupportedException(SR.NotSupported_COM);
124
}
125
126
- if (cxt.InterfaceId != typeof(IClassFactory).GUID
+ if (cxt.InterfaceId != Marshal.IID_IUnknown
127
+ && cxt.InterfaceId != typeof(IClassFactory).GUID
128
&& cxt.InterfaceId != typeof(IClassFactory2).GUID)
129
{
130
throw new NotSupportedException();
0 commit comments