Browse Source

[TypeSystem] Cecil loader no longer crashes loading gtk-sharp.dll on

windows.
newNRvisualizers
mike 14 years ago committed by mike
parent
commit
4add67930e
  1. 4
      ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs

4
ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs

@ -435,6 +435,10 @@ namespace ICSharpCode.NRefactory.TypeSystem
CallingConvention callingConvention; CallingConvention callingConvention;
switch (info.Attributes & PInvokeAttributes.CallConvMask) { switch (info.Attributes & PInvokeAttributes.CallConvMask) {
case (PInvokeAttributes)0:
Debug.WriteLine ("P/Invoke calling convention not set on:" + methodDefinition.FullName);
callingConvention = CallingConvention.StdCall;
break;
case PInvokeAttributes.CallConvCdecl: case PInvokeAttributes.CallConvCdecl:
callingConvention = CallingConvention.Cdecl; callingConvention = CallingConvention.Cdecl;
break; break;

Loading…
Cancel
Save