diff options
author | Jb Evain <jb@evain.net> | 2016-04-19 01:41:51 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2016-04-19 01:41:51 +0300 |
commit | 95b7b86c5e8646ff684443ac4aab3c037659b7f9 (patch) | |
tree | 58e22432abb76d02d683dcf3b563217b6de8eecc | |
parent | 805cedf1fbb7a2d5bbb66fa6576b32f9bd4bb584 (diff) |
Fix heuristic to detect if we're reading a corelibrary or not
-rw-r--r-- | Mono.Cecil/ModuleDefinition.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mono.Cecil/ModuleDefinition.cs b/Mono.Cecil/ModuleDefinition.cs index fcbe10e..5a9616d 100644 --- a/Mono.Cecil/ModuleDefinition.cs +++ b/Mono.Cecil/ModuleDefinition.cs @@ -1144,7 +1144,7 @@ namespace Mono.Cecil { if (assembly_name != "mscorlib" && assembly_name != "System.Runtime") return false; - if (module.HasImage && !module.Read (module, (m, reader) => reader.image.GetTableLength (Table.TypeDef) > 1)) + if (module.HasImage && module.Read (module, (m, reader) => reader.image.GetTableLength (Table.AssemblyRef) > 0)) return false; return true; |