Permalink
Browse files

Merge pull request #1305 from agametov/agametov-fix-reverse

CWE-252 The return value of function 'Reverse' is required to be utilized.
  • Loading branch information...
siegfriedpammer committed Nov 3, 2018
2 parents 0555117 + e889420 commit c9f40a0b1a702f00ce990527e12cde6d469b6e56
Showing with 1 addition and 1 deletion.
  1. +1 −1 ILSpy/TreeNodes/AssemblyListTreeNode.cs
@@ -112,7 +112,7 @@ public override void Drop(DragEventArgs e, int index)
index--;
assemblyList.assemblies.RemoveAt(nodeIndex);
}
assemblies.Reverse();
Array.Reverse(assemblies);
foreach (LoadedAssembly asm in assemblies) {
assemblyList.assemblies.Insert(index, asm);
}

0 comments on commit c9f40a0

Please sign in to comment.