Some fixes

This commit is contained in:
de4dot 2012-01-08 18:38:37 +01:00
parent cb21940841
commit 28f8bdcc89
2 changed files with 4 additions and 1 deletions

View File

@ -138,6 +138,9 @@ namespace de4dot.code.deobfuscators.Babel_NET {
}
public void initialize(ISimpleDeobfuscator simpleDeobfuscator, IDeobfuscator deob) {
if (decrypterType == null)
return;
encryptedResource = findEncryptedResource(simpleDeobfuscator, deob);
if (encryptedResource == null) {
Log.w("Could not find encrypted constants resource");

View File

@ -251,7 +251,7 @@ namespace de4dot.code.deobfuscators.Babel_NET {
if (type.IsGenericInstance)
type = ((GenericInstanceType)type).ElementType;
if (type.Scope == module)
if (type.Module == module && isModuleAssembly(type.Scope))
return DotNetUtils.getType(module, type);
return externalAssemblies.resolve(type);