Don't add a base type if the type is actually System.Object
This commit is contained in:
parent
740e206e6d
commit
cb929f63dd
|
@ -206,6 +206,9 @@ namespace de4dot.code.deobfuscators {
|
||||||
foreach (var type in module.GetTypes()) {
|
foreach (var type in module.GetTypes()) {
|
||||||
if (!isTypeWithInvalidBaseType(moduleType, type))
|
if (!isTypeWithInvalidBaseType(moduleType, type))
|
||||||
continue;
|
continue;
|
||||||
|
var corSig = module.CorLibTypes.GetCorLibTypeSig(type);
|
||||||
|
if (corSig != null && corSig.ElementType == ElementType.Object)
|
||||||
|
continue;
|
||||||
Logger.v("Adding System.Object as base type: {0} ({1:X8})",
|
Logger.v("Adding System.Object as base type: {0} ({1:X8})",
|
||||||
Utils.removeNewlines(type),
|
Utils.removeNewlines(type),
|
||||||
type.MDToken.ToInt32());
|
type.MDToken.ToInt32());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user