aboutsummaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
authorEric StJohn <ericstj@microsoft.com>2021-09-13 13:52:09 -0700
committerEric StJohn <ericstj@microsoft.com>2021-09-13 13:52:09 -0700
commitfe77e96629575d6cfc16f8a868f13af89c198d13 (patch)
treebaf7d3b6c3bf8982c7b4f2903ccebfb3decaaaa0 /src/ext
parent495370ff9311d406da9c043cd208ce836a0303ff (diff)
downloadwix-fe77e96629575d6cfc16f8a868f13af89c198d13.tar.gz
wix-fe77e96629575d6cfc16f8a868f13af89c198d13.tar.bz2
wix-fe77e96629575d6cfc16f8a868f13af89c198d13.zip
Don't set NativeMachine variables when IsWow64Process2 is unavailable
Diffstat (limited to 'src/ext')
-rw-r--r--src/ext/Util/ca/OsInfo.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ext/Util/ca/OsInfo.cpp b/src/ext/Util/ca/OsInfo.cpp
index eb76a3a0..3f91a9e5 100644
--- a/src/ext/Util/ca/OsInfo.cpp
+++ b/src/ext/Util/ca/OsInfo.cpp
@@ -506,7 +506,10 @@ extern "C" UINT __stdcall WixQueryNativeMachine(
506 hr = ::ProcNativeMachine(::GetCurrentProcess(), &usNativeMachine); 506 hr = ::ProcNativeMachine(::GetCurrentProcess(), &usNativeMachine);
507 ExitOnFailure(hr, "Failed to get native machine value."); 507 ExitOnFailure(hr, "Failed to get native machine value.");
508 508
509 WcaSetIntProperty(L"WIX_NATIVE_MACHINE", usNativeMachine); 509 if (hr != S_FALSE)
510 {
511 WcaSetIntProperty(L"WIX_NATIVE_MACHINE", usNativeMachine);
512 }
510 513
511LExit: 514LExit:
512 if (FAILED(hr)) 515 if (FAILED(hr))