diff options
author | Eric StJohn <ericstj@microsoft.com> | 2021-09-13 13:52:09 -0700 |
---|---|---|
committer | Eric StJohn <ericstj@microsoft.com> | 2021-09-13 13:52:09 -0700 |
commit | fe77e96629575d6cfc16f8a868f13af89c198d13 (patch) | |
tree | baf7d3b6c3bf8982c7b4f2903ccebfb3decaaaa0 /src/ext | |
parent | 495370ff9311d406da9c043cd208ce836a0303ff (diff) | |
download | wix-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.cpp | 5 |
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 | ||
511 | LExit: | 514 | LExit: |
512 | if (FAILED(hr)) | 515 | if (FAILED(hr)) |