Skip to content

Commit

Permalink
Merge pull request #47 from telerik/DecompileDangerousResourcesWithUs…
Browse files Browse the repository at this point in the history
…erConsent

Fixed incorrect reading of old assembly
  • Loading branch information
atdimitrov authored Aug 6, 2018
2 parents 9c63149 + 0d91a3b commit 5f5eeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/JustAssembly/Nodes/AssemblyNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public Task LoadItemsAsync(Action cancelAction = null)
{
progressNotifier.LoadingMessage = string.Format("Loading assembly {0} of {1}", assemblyNumber, assemblyCount);

AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(TypesMap.NewType, new ReaderParameters(GlobalAssemblyResolver.Instance));
AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(TypesMap.OldType, new ReaderParameters(GlobalAssemblyResolver.Instance));
bool shouldDecompileDangerousResources = this.ShouldDecompileDangerousResources(assembly, TypesMap.OldType, AssemblyType.Old);

IAssemblyDecompilationResults r1 = Decompiler.GenerateFiles(TypesMap.OldType,
Expand Down

0 comments on commit 5f5eeac

Please sign in to comment.