Return immediately if there's nothing to do

This commit is contained in:
de4dot 2012-12-07 15:06:52 +01:00
parent fa4e1fcc6b
commit 8e79777cdf

View File

@ -100,6 +100,8 @@ namespace de4dot.code.deobfuscators {
} }
public void deobfuscate(Blocks blocks) { public void deobfuscate(Blocks blocks) {
if (oldToNewMethod.Count == 0)
return;
foreach (var block in blocks.MethodBlocks.getAllBlocks()) { foreach (var block in blocks.MethodBlocks.getAllBlocks()) {
var instrs = block.Instructions; var instrs = block.Instructions;
for (int i = 0; i < instrs.Count; i++) { for (int i = 0; i < instrs.Count; i++) {