Should also check for newobj instrs

This commit is contained in:
de4dot 2012-07-31 15:01:54 +02:00
parent 9cbbea2c01
commit b7715433bf

View File

@ -1207,7 +1207,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;
var calledMethod = instr.Operand as MethodReference;
if (calledMethod == null)