From 95b835895b11ec60749fa4d67d746b6b1970e223 Mon Sep 17 00:00:00 2001 From: de4dot Date: Fri, 3 Feb 2012 09:44:35 +0100 Subject: [PATCH] Inline the remaining methods --- .../Spices_Net/SpicesMethodCallInliner.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/de4dot.code/deobfuscators/Spices_Net/SpicesMethodCallInliner.cs b/de4dot.code/deobfuscators/Spices_Net/SpicesMethodCallInliner.cs index 1a71990b..24c8029e 100644 --- a/de4dot.code/deobfuscators/Spices_Net/SpicesMethodCallInliner.cs +++ b/de4dot.code/deobfuscators/Spices_Net/SpicesMethodCallInliner.cs @@ -35,6 +35,16 @@ namespace de4dot.code.deobfuscators.Spices_Net { this.module = module; } + protected override bool isCompatibleType(int paramIndex, TypeReference origType, TypeReference newType) { + if (MemberReferenceHelper.compareTypes(origType, newType)) + return true; + if (paramIndex == -1) { + if (newType.IsValueType || origType.IsValueType) + return false; + } + return newType.EType == ElementType.Object; + } + public bool checkCanInline(MethodDefinition method) { return methodsTypes.find(method.DeclaringType); }