Fix collection modified during enumeration bug.
Sean Hall committed
Jan 26, 2021 at 17:15 UTC
0ed52c6a2c2ffa5b4871d8187ca4057b4699fa85
1 file changed
+1
-1
src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs
+1
-1
@@ -687,7 +687,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
687
keptRows += ReduceTransformSequenceTable(sequenceList, oldSections, newSections, customActionTable);
688
689
// Delete tables that are empty.
690
- var tablesToDelete = transform.Tables.Where(t => t.Rows.Count == 0).Select(t => t.Name);
690
+ var tablesToDelete = transform.Tables.Where(t => t.Rows.Count == 0).Select(t => t.Name).ToList();
691
692
foreach (var tableName in tablesToDelete)
693
{