Reverse return value
This commit is contained in:
parent
11f992b0f2
commit
634e9ec023
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user