diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2016-05-25 15:42:20 -0700 |
---|---|---|
committer | Gaurav Khanna <gkhanna@microsoft.com> | 2016-05-25 15:42:20 -0700 |
commit | 57c5bd38021e154e0949c204b759208541d56f39 (patch) | |
tree | d13e0a21fcdc3f642bddbeeb170c933a30632ee8 /src/md | |
parent | 62003155b53d50881dd2c353dd628376501ffa46 (diff) | |
download | coreclr-57c5bd38021e154e0949c204b759208541d56f39.tar.gz coreclr-57c5bd38021e154e0949c204b759208541d56f39.tar.bz2 coreclr-57c5bd38021e154e0949c204b759208541d56f39.zip |
WinMD Adapter should only lookup mscorlib in WinMD references
Diffstat (limited to 'src/md')
-rw-r--r-- | src/md/winmd/adapter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/md/winmd/adapter.cpp b/src/md/winmd/adapter.cpp index 146b04eda2..5b4d95cc7c 100644 --- a/src/md/winmd/adapter.cpp +++ b/src/md/winmd/adapter.cpp @@ -157,7 +157,9 @@ HRESULT CheckIfWinMDAdapterNeeded(IMDCommon *pRawMDCommon) LPCSTR arefName; USHORT usMajorVersion; IfFailGo(pNewAdapter->m_pRawMetaModelCommonRO->CommonGetAssemblyRefProps(mdar, &usMajorVersion, NULL, NULL, NULL, NULL, NULL, NULL, &arefName, NULL, NULL, NULL)); - if (0 == strcmp(arefName, CoreLibName_A)) + + // We check for legacy Core library name since Windows.winmd references mscorlib and not System.Private.CoreLib + if (0 == strcmp(arefName, LegacyCoreLibName_A)) { pNewAdapter->m_assemblyRefMscorlib = mdar; |