diff options
author | Bob Arnson <bob@firegiant.com> | 2022-01-15 21:40:54 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2022-01-16 10:28:44 -0500 |
commit | 47bca2dc51525fcad86f325278b14953ac5b137e (patch) | |
tree | 80a153833efbe0794be7153c64e712a5799649c4 /src/libs/dutil/WixToolset.DUtil/monutil.cpp | |
parent | 6d1c4cc83214b65032251c67239b02da59a3e635 (diff) | |
download | wix-47bca2dc51525fcad86f325278b14953ac5b137e.tar.gz wix-47bca2dc51525fcad86f325278b14953ac5b137e.tar.bz2 wix-47bca2dc51525fcad86f325278b14953ac5b137e.zip |
Fix 32/64-bit bitness handling in Burn and BUtil.
- Take advantage of RegOpenEx.
- Always look for related bundles in both 32 and 64 hives.
- BundleEnumRelatedBundle requires caller to specify bitness.
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/monutil.cpp')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/monutil.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/monutil.cpp b/src/libs/dutil/WixToolset.DUtil/monutil.cpp index 6a7f0596..6ad75b56 100644 --- a/src/libs/dutil/WixToolset.DUtil/monutil.cpp +++ b/src/libs/dutil/WixToolset.DUtil/monutil.cpp | |||
@@ -1677,18 +1677,7 @@ static REGSAM GetRegKeyBitness( | |||
1677 | __in MON_REQUEST *pRequest | 1677 | __in MON_REQUEST *pRequest |
1678 | ) | 1678 | ) |
1679 | { | 1679 | { |
1680 | if (REG_KEY_32BIT == pRequest->regkey.kbKeyBitness) | 1680 | return RegTranslateKeyBitness(pRequest->regkey.kbKeyBitness); |
1681 | { | ||
1682 | return KEY_WOW64_32KEY; | ||
1683 | } | ||
1684 | else if (REG_KEY_64BIT == pRequest->regkey.kbKeyBitness) | ||
1685 | { | ||
1686 | return KEY_WOW64_64KEY; | ||
1687 | } | ||
1688 | else | ||
1689 | { | ||
1690 | return 0; | ||
1691 | } | ||
1692 | } | 1681 | } |
1693 | 1682 | ||
1694 | static HRESULT DuplicateRemoveMessage( | 1683 | static HRESULT DuplicateRemoveMessage( |