Should also check for newobj instrs
This commit is contained in:
parent
9cbbea2c01
commit
b7715433bf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user