aboutsummaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
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))