Read HKLM fallback from cross registry view
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 25 Oct 2018 09:50:58 +0000 (11:50 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 25 Oct 2018 09:50:58 +0000 (11:50 +0200)
commitb4c45c3a3ec98b900bcd785ea9261e33f5562e08
tree04d3930c4b0c31c31e8f723a5a96d1c151cb2335
parent326f0abbbaf1b1d59e0fc72730923b40cfa3bf09
Read HKLM fallback from cross registry view

* src/addin-options.cpp (open-gpgolconfig): Do not pass w64 again.
* src/common.cpp (CROSS_ACCESS): New define.
(_readRegStr): Helper for readRegStr.
(readRegStr): More explicit fallbacks.

--
This should be more robust to handle cases where either
HKLM is set up as 32 bit registry key or as 64 bit registry
key.
src/addin-options.cpp
src/common.cpp