@joebigelow / wix / commits / dd2fe20d

Fix crash with use of File/@PatchGroup.

Bob Arnson committed Sep 3, 2024 at 14:25 UTC dd2fe20d9fe58719445411524bd730495140d02f
2 files changed +2 -2
src/wix/WixToolset.Core.WindowsInstaller/Bind/UpdateMediaSequencesCommand.cs
+1 -1
@@ -60,7 +60,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind
60
61 if (facade.PatchGroup.HasValue)
62 {
63 - if (patchGroups.TryGetValue(facade.PatchGroup.Value, out var patchGroup))
63 + if (!patchGroups.TryGetValue(facade.PatchGroup.Value, out var patchGroup))
64 {
65 patchGroup = new List<IFileFacade>();
66 patchGroups.Add(facade.PatchGroup.Value, patchGroup);
src/wix/test/WixToolsetTest.CoreIntegration/TestData/PatchFromWixlib/Package.wxs
+1 -1
@@ -17,7 +17,7 @@
17 <Fragment>
18 <ComponentGroup Id="Components" Directory="INSTALLFOLDER">
19 <Component>
20 - <File Source="$(sys.SOURCEFILEPATH)" />
20 + <File PatchGroup="22" Source="$(sys.SOURCEFILEPATH)" />
21 </Component>
22
23 <Component>