Create a unique metadata token since renamer depends on it
This commit is contained in:
parent
26b2de90af
commit
2684ccab93
|
@ -66,7 +66,9 @@ namespace de4dot.code.deobfuscators.DeepSea {
|
||||||
ownerType.Fields.Add(field);
|
ownerType.Fields.Add(field);
|
||||||
|
|
||||||
// Add a field so peverify won't complain if this type isn't removed
|
// Add a field so peverify won't complain if this type isn't removed
|
||||||
structType.Fields.Add(new FieldDefinition("a", FieldAttributes.Public, module.TypeSystem.Byte));
|
var newField = new FieldDefinition("a", FieldAttributes.Public, module.TypeSystem.Byte);
|
||||||
|
newField.MetadataToken = DotNetUtils.nextFieldToken();
|
||||||
|
structType.Fields.Add(newField);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user