From 2bf60b17b02bf0baab25373ac48e5e1829a35548 Mon Sep 17 00:00:00 2001 From: de4dot Date: Wed, 11 Apr 2012 20:02:15 +0200 Subject: [PATCH] Calli pops the func ptr --- blocks/DotNetUtils.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blocks/DotNetUtils.cs b/blocks/DotNetUtils.cs index 97ea6df7..c8879a8b 100644 --- a/blocks/DotNetUtils.cs +++ b/blocks/DotNetUtils.cs @@ -768,6 +768,8 @@ namespace de4dot.blocks { pops += method.Parameters.Count; if (implicitThis && instr.OpCode.Code != Code.Newobj) pops++; + if (instr.OpCode.Code == Code.Calli) + pops++; } // Sets pops to -1 if the stack is supposed to be cleared