From 3c9eb7218686ffe40d841e7669d8fcf670f3c32b Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 12 Mar 2020 16:22:44 +1100 Subject: Guard around defining FACILITY_WIX. --- src/balutil/balutil.vcxproj | 4 ++-- src/balutil/inc/balutil.h | 2 ++ src/balutil/packages.config | 2 +- src/mbanative/mbanative.vcxproj | 4 ++-- src/mbanative/packages.config | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/balutil/balutil.vcxproj b/src/balutil/balutil.vcxproj index 5c934f65..134bc2f6 100644 --- a/src/balutil/balutil.vcxproj +++ b/src/balutil/balutil.vcxproj @@ -2,7 +2,7 @@ - + @@ -90,7 +90,7 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + diff --git a/src/balutil/inc/balutil.h b/src/balutil/inc/balutil.h index 0fbaab97..d86b2728 100644 --- a/src/balutil/inc/balutil.h +++ b/src/balutil/inc/balutil.h @@ -13,7 +13,9 @@ extern "C" { #define BalExitOnRootFailure(x, f, ...) if (FAILED(x)) { BalLogError(x, f, __VA_ARGS__); Dutil_RootFailure(__FILE__, __LINE__, x); ExitTrace(x, f, __VA_ARGS__); goto LExit; } #define BalExitOnNullWithLastError(p, x, f, ...) if (NULL == p) { DWORD Dutil_er = ::GetLastError(); x = HRESULT_FROM_WIN32(Dutil_er); if (!FAILED(x)) { x = E_FAIL; } BalLogError(x, f, __VA_ARGS__); ExitTrace(x, f, __VA_ARGS__); goto LExit; } +#ifndef FACILITY_WIX #define FACILITY_WIX 500 +#endif const LPCWSTR BAL_MANIFEST_FILENAME = L"BootstrapperApplicationData.xml"; diff --git a/src/balutil/packages.config b/src/balutil/packages.config index f7638ec7..01a9390c 100644 --- a/src/balutil/packages.config +++ b/src/balutil/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/src/mbanative/mbanative.vcxproj b/src/mbanative/mbanative.vcxproj index a3c93e2a..4a9b91f6 100644 --- a/src/mbanative/mbanative.vcxproj +++ b/src/mbanative/mbanative.vcxproj @@ -2,7 +2,7 @@ - + @@ -69,7 +69,7 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + diff --git a/src/mbanative/packages.config b/src/mbanative/packages.config index f7638ec7..01a9390c 100644 --- a/src/mbanative/packages.config +++ b/src/mbanative/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file -- cgit v1.2.3-55-g6feb