Don't update method header max stack field if no cflow deob

This commit is contained in:
de4dot 2011-11-05 08:36:36 +01:00
parent 5e274dc4ad
commit 81d890d94e
2 changed files with 6 additions and 3 deletions

View File

@ -44,8 +44,11 @@ namespace de4dot {
return module;
}
public void save(string newFilename) {
module.Write(newFilename);
public void save(string newFilename, bool updateMaxStack) {
var writerParams = new WriterParameters() {
UpdateMaxStack = updateMaxStack,
};
module.Write(newFilename, writerParams);
}
void readMethodsFile() {

View File

@ -245,7 +245,7 @@ namespace de4dot {
public void save() {
Log.n("Saving {0}", options.NewFilename);
assemblyModule.save(options.NewFilename);
assemblyModule.save(options.NewFilename, options.ControlFlowDeobfuscation);
}
IList<MethodDefinition> getAllMethods() {