Remove classes with null base type

This commit is contained in:
de4dot 2012-02-25 05:28:32 +01:00
parent 330be994a1
commit d09938ca47
2 changed files with 3 additions and 3 deletions

View File

@ -266,8 +266,6 @@ namespace de4dot.code.deobfuscators.CodeVeil {
}
}
removeTypesWithInvalidBaseTypes();
removeProxyDelegates(proxyDelegateFinder, canRemoveProxyTypes);
if (canRemoveProxyTypes) {
addTypeToBeRemoved(proxyDelegateFinder.IlGeneratorType, "Obfuscator proxy method ILGenerator type");

View File

@ -166,6 +166,8 @@ namespace de4dot.code.deobfuscators {
public virtual void deobfuscateEnd() {
if (!Operations.KeepObfuscatorTypes && !KeepTypes) {
removeTypesWithInvalidBaseTypes();
deleteEmptyCctors();
deleteMethods();
deleteFields();
@ -200,7 +202,7 @@ namespace de4dot.code.deobfuscators {
}
}
protected void removeTypesWithInvalidBaseTypes() {
void removeTypesWithInvalidBaseTypes() {
var moduleType = DotNetUtils.getModuleType(module);
foreach (var type in module.GetTypes()) {
if (!isTypeWithInvalidBaseType(moduleType, type))