diff --git a/de4dot.code/MethodReturnValueInliner.cs b/de4dot.code/MethodReturnValueInliner.cs index e9ee2726..2016a822 100644 --- a/de4dot.code/MethodReturnValueInliner.cs +++ b/de4dot.code/MethodReturnValueInliner.cs @@ -168,7 +168,7 @@ namespace de4dot { // Returns null if method is not a method we should inline protected abstract CallResult createCallResult(MethodReference method, Block block, int callInstrIndex); - public void decrypt(Blocks theBlocks) { + public int decrypt(Blocks theBlocks) { try { blocks = theBlocks; callResults = new List(); @@ -177,6 +177,7 @@ namespace de4dot { findAllCallResults(); inlineAllCalls(); inlineReturnValues(); + return callResults.Count; } finally { blocks = null;