diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-01-26 17:15:21 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-01-26 17:37:03 -0600 |
commit | 0ed52c6a2c2ffa5b4871d8187ca4057b4699fa85 (patch) | |
tree | e930c596a35ae01ad8707419a51d3e996007d9dc | |
parent | 870d523687cbeeab3432abdb5a07a5250c5e1bc4 (diff) | |
download | wix-0ed52c6a2c2ffa5b4871d8187ca4057b4699fa85.tar.gz wix-0ed52c6a2c2ffa5b4871d8187ca4057b4699fa85.tar.bz2 wix-0ed52c6a2c2ffa5b4871d8187ca4057b4699fa85.zip |
Fix collection modified during enumeration bug.
-rw-r--r-- | src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs index 51f1f81a..2249faf8 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/AttachPatchTransformsCommand.cs | |||
@@ -687,7 +687,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
687 | keptRows += ReduceTransformSequenceTable(sequenceList, oldSections, newSections, customActionTable); | 687 | keptRows += ReduceTransformSequenceTable(sequenceList, oldSections, newSections, customActionTable); |
688 | 688 | ||
689 | // Delete tables that are empty. | 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 | 691 | ||
692 | foreach (var tableName in tablesToDelete) | 692 | foreach (var tableName in tablesToDelete) |
693 | { | 693 | { |