aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-12-30 15:11:35 -0600
committerSean Hall <r.sean.hall@gmail.com>2021-12-30 18:40:49 -0600
commitc86f75bcc104d5dc457fa2900a3ebb9c38f6ff65 (patch)
tree421da00d5fccb6013d5820f12d90ba84488df3d9
parente8cb88c57e8c7108d6efcbf264ed24f5a392da18 (diff)
downloadwix-c86f75bcc104d5dc457fa2900a3ebb9c38f6ff65.tar.gz
wix-c86f75bcc104d5dc457fa2900a3ebb9c38f6ff65.tar.bz2
wix-c86f75bcc104d5dc457fa2900a3ebb9c38f6ff65.zip
Revert .wixburn version since the format didn't change.
-rw-r--r--src/burn/engine/inc/engine.h8
-rw-r--r--src/burn/engine/precomp.h1
-rw-r--r--src/burn/engine/section.cpp8
-rw-r--r--src/burn/stub/StubSection.cpp9
-rw-r--r--src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs5
5 files changed, 15 insertions, 16 deletions
diff --git a/src/burn/engine/inc/engine.h b/src/burn/engine/inc/engine.h
index 808bb91a..b80b4213 100644
--- a/src/burn/engine/inc/engine.h
+++ b/src/burn/engine/inc/engine.h
@@ -2,6 +2,14 @@
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3 3
4 4
5// constants
6
7// If these defaults ever change, be sure to update constants in wix\WixToolset.Core.Burn\Bundles\BurnCommon.cs as well.
8#define BURN_SECTION_NAME ".wixburn"
9#define BURN_SECTION_MAGIC 0x00f14300
10#define BURN_SECTION_VERSION 0x00000002
11
12
5#if defined(__cplusplus) 13#if defined(__cplusplus)
6extern "C" { 14extern "C" {
7#endif 15#endif
diff --git a/src/burn/engine/precomp.h b/src/burn/engine/precomp.h
index f76bb198..3b4d989b 100644
--- a/src/burn/engine/precomp.h
+++ b/src/burn/engine/precomp.h
@@ -101,3 +101,4 @@
101#include "EngineForApplication.h" 101#include "EngineForApplication.h"
102#include "EngineForExtension.h" 102#include "EngineForExtension.h"
103#include "engine.messages.h" 103#include "engine.messages.h"
104#include "engine.h"
diff --git a/src/burn/engine/section.cpp b/src/burn/engine/section.cpp
index a9c7927e..989bfb17 100644
--- a/src/burn/engine/section.cpp
+++ b/src/burn/engine/section.cpp
@@ -3,14 +3,6 @@
3#include "precomp.h" 3#include "precomp.h"
4 4
5 5
6// constants
7
8// If these defaults ever change, be sure to update constants in burn\stub\StubSection.cpp as well.
9#define BURN_SECTION_NAME ".wixburn"
10#define BURN_SECTION_MAGIC 0x00f14300
11#define BURN_SECTION_VERSION 0x00000003
12#define MANIFEST_CABINET_TOKEN L"0"
13
14// structs 6// structs
15typedef struct _BURN_SECTION_HEADER 7typedef struct _BURN_SECTION_HEADER
16{ 8{
diff --git a/src/burn/stub/StubSection.cpp b/src/burn/stub/StubSection.cpp
index 2191a138..62d3e91e 100644
--- a/src/burn/stub/StubSection.cpp
+++ b/src/burn/stub/StubSection.cpp
@@ -2,12 +2,11 @@
2 2
3#include "precomp.h" 3#include "precomp.h"
4 4
5#pragma section(".wixburn",read) 5#pragma section(BURN_SECTION_NAME,read)
6 6
7// If these defaults ever change, be sure to update constants in burn\engine\section.cpp as well. 7#pragma data_seg(push, BURN_SECTION_NAME)
8#pragma data_seg(push, ".wixburn") 8static DWORD dwMagic = BURN_SECTION_MAGIC;
9static DWORD dwMagic = 0x00f14300; 9static DWORD dwVersion = BURN_SECTION_VERSION;
10static DWORD dwVersion = 0x00000003;
11 10
12static GUID guidBundleId = { }; 11static GUID guidBundleId = { };
13 12
diff --git a/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs b/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs
index 27fad5b3..733f7c00 100644
--- a/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs
+++ b/src/wix/WixToolset.Core.Burn/Bundles/BurnCommon.cs
@@ -83,8 +83,7 @@ namespace WixToolset.Core.Burn.Bundles
83 protected const UInt32 BURN_SECTION_MIN_SIZE = BURN_SECTION_OFFSET_ATTACHEDCONTAINERSIZE0; 83 protected const UInt32 BURN_SECTION_MIN_SIZE = BURN_SECTION_OFFSET_ATTACHEDCONTAINERSIZE0;
84 84
85 protected const UInt32 BURN_SECTION_MAGIC = 0x00f14300; 85 protected const UInt32 BURN_SECTION_MAGIC = 0x00f14300;
86 protected const UInt32 BURN_SECTION_VERSION = 0x00000003; 86 protected const UInt32 BURN_SECTION_VERSION = 0x00000002;
87 protected const UInt32 BURN_SECTION_COMPATIBLE_VERSION = 0x00000002;
88 87
89 protected string fileExe; 88 protected string fileExe;
90 protected UInt32 peOffset = UInt32.MaxValue; 89 protected UInt32 peOffset = UInt32.MaxValue;
@@ -191,7 +190,7 @@ namespace WixToolset.Core.Burn.Bundles
191 } 190 }
192 191
193 this.Version = BurnCommon.ReadUInt32(bytes, BURN_SECTION_OFFSET_VERSION); 192 this.Version = BurnCommon.ReadUInt32(bytes, BURN_SECTION_OFFSET_VERSION);
194 if ((BURN_SECTION_VERSION != this.Version) && (BURN_SECTION_COMPATIBLE_VERSION != this.Version)) 193 if (BURN_SECTION_VERSION != this.Version)
195 { 194 {
196 this.Messaging.Write(BurnBackendErrors.IncompatibleWixBurnSection(this.fileExe, this.Version)); 195 this.Messaging.Write(BurnBackendErrors.IncompatibleWixBurnSection(this.fileExe, this.Version));
197 return false; 196 return false;