Browse Source

Fix #2564: Make sure lock is held in all AssemblyList ctors that modify it.

pull/2568/head
Siegfried Pammer 4 years ago
parent
commit
2debfe9e73
  1. 4
      ILSpy/AssemblyList.cs

4
ILSpy/AssemblyList.cs

@ -85,9 +85,13 @@ namespace ICSharpCode.ILSpy @@ -85,9 +85,13 @@ namespace ICSharpCode.ILSpy
/// </summary>
public AssemblyList(AssemblyList list, string newName)
: this(newName)
{
lock (lockObj)
{
this.assemblies.AddRange(list.assemblies);
}
this.dirty = false;
}
public event NotifyCollectionChangedEventHandler CollectionChanged {
add {

Loading…
Cancel
Save