Remove the TypeDefId 'hint' in ExportedType
Seems the runtime is so gullible that would blindly use the wrong provided hint.
This commit is contained in:
Родитель
4ae5b68787
Коммит
ac5cb2f756
|
@ -313,7 +313,7 @@ namespace Confuser.Protections {
|
|||
foreach (var type in ctx.OriginModuleDef.GetTypes()) {
|
||||
if (!type.IsVisibleOutside())
|
||||
continue;
|
||||
exTbl.Add(new RawExportedTypeRow((uint)type.Attributes, type.Rid,
|
||||
exTbl.Add(new RawExportedTypeRow((uint)type.Attributes, 0,
|
||||
writer.MetaData.StringsHeap.Add(type.Name),
|
||||
writer.MetaData.StringsHeap.Add(type.Namespace), impl));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче