This commit is contained in:
jfrijters 2010-05-20 09:28:44 +00:00
Родитель 118db6d049
Коммит 4f4f667aa8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -231,7 +231,7 @@ namespace IKVM.Reflection.Reader
{ {
List<CustomAttributeData> list = module.GetCustomAttributes(this.MetadataToken, attributeType); List<CustomAttributeData> list = module.GetCustomAttributes(this.MetadataToken, attributeType);
if ((this.Attributes & MethodAttributes.PinvokeImpl) != 0 if ((this.Attributes & MethodAttributes.PinvokeImpl) != 0
&& (attributeType == null || attributeType.IsAssignableFrom(this.Module.universe.System_Runtime_InteropServices_MarshalAsAttribute))) && (attributeType == null || attributeType.IsAssignableFrom(module.universe.System_Runtime_InteropServices_DllImportAttribute)))
{ {
CreateDllImportPseudoCustomAttribute(list); CreateDllImportPseudoCustomAttribute(list);
} }