Reverse return value

This commit is contained in:
de4dot 2012-04-07 06:47:19 +02:00
parent 11f992b0f2
commit 634e9ec023
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ namespace de4dot.code.deobfuscators.CliSecure.vm {
bool atLeastOneFailed = false;
if (method == null || method.Body == null)
return atLeastOneFailed;
return !atLeastOneFailed;
var instrs = method.Body.Instructions;
for (int i = 0; i < instrs.Count; i++) {
@ -73,7 +73,7 @@ namespace de4dot.code.deobfuscators.CliSecure.vm {
instr.Operand = operandType;
}
return atLeastOneFailed;
return !atLeastOneFailed;
}
static TypeReference getPtrElementType(TypeReference type) {

View File

@ -49,7 +49,7 @@ namespace de4dot.code.deobfuscators.CliSecure.vm {
DotNetUtils.restoreBody(cilMethod, newInstructions, newExceptions);
if (operandRestorer.restore(cilMethod))
if (!operandRestorer.restore(cilMethod))
Log.w("Failed to restore one or more instruction operands in CSVM method {0:X8}", cilMethod.MetadataToken.ToInt32());
restoreConstrainedPrefix(cilMethod);
}