Use the same default value of MarshalAs.IidParamIndex for both Windows and Unix ...
authorJan Kotas <jkotas@microsoft.com>
Wed, 28 Feb 2018 02:48:09 +0000 (18:48 -0800)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2018 02:48:09 +0000 (18:48 -0800)
src/vm/managedmdimport.cpp

index 0b8008a..e780275 100644 (file)
@@ -68,7 +68,7 @@ FCIMPL11(void, MetaDataImport::GetMarshalAs,
         *safeArrayUserDefinedSubType = info.m_strSafeArrayUserDefTypeName == NULL ? NULL :
             StringObject::NewString(info.m_strSafeArrayUserDefTypeName, info.m_cSafeArrayUserDefTypeNameBytes);
 #else
-        *iidParamIndex = -1;
+        *iidParamIndex = 0;
 
         *safeArraySubType = VT_EMPTY;