From 948d5c1744e0815b4c0f7047470efdec793888a5 Mon Sep 17 00:00:00 2001 From: de4dot Date: Thu, 20 Oct 2011 03:34:05 +0200 Subject: [PATCH] Only use the DNR inline method hack if it's a static method --- blocks/cflow/BlockCflowDeobfuscator.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blocks/cflow/BlockCflowDeobfuscator.cs b/blocks/cflow/BlockCflowDeobfuscator.cs index 0bd06cf4..d135cd6b 100644 --- a/blocks/cflow/BlockCflowDeobfuscator.cs +++ b/blocks/cflow/BlockCflowDeobfuscator.cs @@ -84,6 +84,8 @@ namespace de4dot.blocks.cflow { return false; if (method.Parameters.Count > 0) return false; + if (!method.IsStatic) + return false; if (!MemberReferenceHelper.verifyType(method.MethodReturnType.ReturnType, "mscorlib", "System.Boolean")) return false; var body = method.Body;