Include Newobj when checking for method calls
This commit is contained in:
parent
5fdd91ae05
commit
3b45ddc336
|
@ -1224,7 +1224,7 @@ namespace de4dot.blocks {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
foreach (var instr in method.Body.Instructions) {
|
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;
|
continue;
|
||||||
if (isMethod(instr.Operand as MethodReference, returnType, parameters))
|
if (isMethod(instr.Operand as MethodReference, returnType, parameters))
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user