diff options
author | Yi Zhang (CLR) <yizhang82@users.noreply.github.com> | 2017-06-10 09:08:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-10 09:08:41 -0700 |
commit | d4a4144b622e4304ca04d450807a18807027ab38 (patch) | |
tree | 569612a9e151c7e747176dabe88cbb6e4e1e0db4 /src/vm/mngstdinterfaces.cpp | |
parent | 073d54b96f8577f7a14c03877fb84b8ce757cede (diff) | |
download | coreclr-d4a4144b622e4304ca04d450807a18807027ab38.tar.gz coreclr-d4a4144b622e4304ca04d450807a18807027ab38.tar.bz2 coreclr-d4a4144b622e4304ca04d450807a18807027ab38.zip |
Disable IEnumerable.GetEnumerator on RCW through IDispatch (#11865)
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(); |