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/burn | |
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/burn')
-rw-r--r-- | src/burn/engine/variable.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/burn/engine/variable.cpp b/src/burn/engine/variable.cpp index e81704ce..04d64f18 100644 --- a/src/burn/engine/variable.cpp +++ b/src/burn/engine/variable.cpp | |||
@@ -1845,8 +1845,11 @@ static HRESULT InitializeVariableNativeMachine( | |||
1845 | hr = ProcNativeMachine(::GetCurrentProcess(), &usNativeMachine); | 1845 | hr = ProcNativeMachine(::GetCurrentProcess(), &usNativeMachine); |
1846 | ExitOnFailure(hr, "Failed to get native machine value."); | 1846 | ExitOnFailure(hr, "Failed to get native machine value."); |
1847 | 1847 | ||
1848 | hr = BVariantSetNumeric(pValue, usNativeMachine); | 1848 | if (hr != S_FALSE) |
1849 | ExitOnFailure(hr, "Failed to set variant value."); | 1849 | { |
1850 | hr = BVariantSetNumeric(pValue, usNativeMachine); | ||
1851 | ExitOnFailure(hr, "Failed to set variant value."); | ||
1852 | } | ||
1850 | 1853 | ||
1851 | LExit: | 1854 | LExit: |
1852 | return hr; | 1855 | return hr; |