Include Newobj when checking for method calls

This commit is contained in:
de4dot 2012-08-11 00:35:06 +02:00
parent 5fdd91ae05
commit 3b45ddc336

View File

@ -1224,7 +1224,7 @@ namespace de4dot.blocks {
return false;
foreach (var instr in method.Body.Instructions) {
if (instr.OpCode.Code != Code.Call && instr.OpCode.Code != Code.Callvirt)
if (instr.OpCode.Code != Code.Call && instr.OpCode.Code != Code.Callvirt && instr.OpCode.Code != Code.Newobj)
continue;
if (isMethod(instr.Operand as MethodReference, returnType, parameters))
return true;