Set new locals by calling SetLocals(), not by writing to the field

This commit is contained in:
de4dot 2012-11-30 03:24:15 +01:00
parent b964e080cd
commit 87b20b00f2

View File

@ -36,7 +36,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
public void read(MethodDef method) {
this.parameters = method.Parameters;
this.locals = getLocals(method);
SetLocals(getLocals(method));
maxStackSize = (ushort)reader.ReadInt32();
ReadInstructionsNumBytes(reader.ReadUInt32());