diff options
Diffstat (limited to 'src/vm/mngstdinterfaces.cpp')
-rw-r--r-- | src/vm/mngstdinterfaces.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vm/mngstdinterfaces.cpp b/src/vm/mngstdinterfaces.cpp index ec1475dec6..5aafe8a97c 100644 --- a/src/vm/mngstdinterfaces.cpp +++ b/src/vm/mngstdinterfaces.cpp @@ -994,8 +994,9 @@ FCIMPL1(Object*, StdMngIEnumerable::GetEnumerator, Object* refThisUNSAFE) if (retVal == NULL) { - // classic COM interop scenario - retVal = ObjectToOBJECTREF((Object*)GetEnumeratorWorker(args)); + // In desktop CLR we'll attempt to call through IDispatch(DISPID_NEWENUM) + // This is not supported in CoreCLR + COMPlusThrow(kPlatformNotSupportedException, IDS_EE_ERROR_IDISPATCH); } GCPROTECT_END(); |