Browse Source

Fix bug SRMExtensions.HasBody

pull/1030/head
Siegfried Pammer 7 years ago
parent
commit
b860792e53
  1. 3
      ICSharpCode.Decompiler/SRMExtensions.cs

3
ICSharpCode.Decompiler/SRMExtensions.cs

@ -99,7 +99,8 @@ namespace ICSharpCode.Decompiler @@ -99,7 +99,8 @@ namespace ICSharpCode.Decompiler
const MethodImplAttributes noBodyImplAttrs = MethodImplAttributes.InternalCall
| MethodImplAttributes.Native | MethodImplAttributes.Unmanaged | MethodImplAttributes.Runtime;
return (methodDefinition.Attributes & noBodyAttrs) == 0 &&
(methodDefinition.ImplAttributes & noBodyImplAttrs) == 0;
(methodDefinition.ImplAttributes & noBodyImplAttrs) == 0 &&
methodDefinition.RelativeVirtualAddress > 0;
}
public static int GetCodeSize(this MethodBodyBlock body)

Loading…
Cancel
Save