aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2022-12-13 14:08:57 -0800
committerRob Mensching <rob@firegiant.com>2022-12-13 15:29:03 -0800
commiteacaa8794ba90b3df4ac344e96ec8da155d90d19 (patch)
treeb1d470fa664bcef22e2e5a7b32bc6ada3418548d
parent19dd3bbb36b8dad1580622e5550b50ebc8b08a78 (diff)
downloadwix-eacaa8794ba90b3df4ac344e96ec8da155d90d19.tar.gz
wix-eacaa8794ba90b3df4ac344e96ec8da155d90d19.tar.bz2
wix-eacaa8794ba90b3df4ac344e96ec8da155d90d19.zip
Slightly larger buffer when inscribing bundle plus minor code cleanup
-rw-r--r--src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs2
-rw-r--r--src/wix/WixToolset.Core.Burn/Bundles/BurnWriter.cs6
-rw-r--r--src/wix/WixToolset.Core.Burn/Inscribe/InscribeBundleEngineCommand.cs2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs b/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs
index 08ed7d56..95673ab0 100644
--- a/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs
+++ b/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs
@@ -451,7 +451,7 @@ namespace WixToolset.Core.Burn.Bundles
451 451
452 internal struct ContainerSlot 452 internal struct ContainerSlot
453 { 453 {
454 public ContainerSlot(uint size) : this() 454 public ContainerSlot(uint size)
455 { 455 {
456 this.Size = size; 456 this.Size = size;
457 } 457 }
diff --git a/src/wix/WixToolset.Core.Burn/Bundles/BurnWriter.cs b/src/wix/WixToolset.Core.Burn/Bundles/BurnWriter.cs
index a61713f1..29664177 100644
--- a/src/wix/WixToolset.Core.Burn/Bundles/BurnWriter.cs
+++ b/src/wix/WixToolset.Core.Burn/Bundles/BurnWriter.cs
@@ -135,13 +135,13 @@ namespace WixToolset.Core.Burn.Bundles
135 var nextAddress = this.EngineSize; 135 var nextAddress = this.EngineSize;
136 for (var i = 1; i < reader.AttachedContainers.Count; i++) 136 for (var i = 1; i < reader.AttachedContainers.Count; i++)
137 { 137 {
138 var cntnr = reader.AttachedContainers[i]; 138 var slot = reader.AttachedContainers[i];
139 139
140 reader.Stream.Seek(nextAddress, SeekOrigin.Begin); 140 reader.Stream.Seek(nextAddress, SeekOrigin.Begin);
141 // TODO: verify that the size in the section data is 0 or the same size. 141 // TODO: verify that the size in the section data is 0 or the same size.
142 this.AppendContainer(reader.Stream, cntnr.Size, BurnCommon.Container.Attached); 142 this.AppendContainer(reader.Stream, slot.Size, BurnCommon.Container.Attached);
143 143
144 nextAddress += cntnr.Size; 144 nextAddress += slot.Size;
145 } 145 }
146 146
147 return true; 147 return true;
diff --git a/src/wix/WixToolset.Core.Burn/Inscribe/InscribeBundleEngineCommand.cs b/src/wix/WixToolset.Core.Burn/Inscribe/InscribeBundleEngineCommand.cs
index 5eeb7061..d0e1165b 100644
--- a/src/wix/WixToolset.Core.Burn/Inscribe/InscribeBundleEngineCommand.cs
+++ b/src/wix/WixToolset.Core.Burn/Inscribe/InscribeBundleEngineCommand.cs
@@ -37,7 +37,7 @@ namespace WixToolset.Core.Burn.Inscribe
37 { 37 {
38 reader.Stream.Seek(0, SeekOrigin.Begin); 38 reader.Stream.Seek(0, SeekOrigin.Begin);
39 39
40 var buffer = new byte[4 * 1024]; 40 var buffer = new byte[8 * 1024];
41 var total = 0; 41 var total = 0;
42 var read = 0; 42 var read = 0;
43 do 43 do