We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec6a001 commit 5b96f54Copy full SHA for 5b96f54
cppwinrt/cmd_reader.h
@@ -137,7 +137,9 @@ namespace cppwinrt
137
HKEY_LOCAL_MACHINE,
138
L"SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots",
139
0,
140
- KEY_READ,
+ // https://task.ms/29349404 - The SDK sometimes stores the 64 bit location into KitsRoot10 which is wrong,
141
+ // this breaks 64-bit cppwinrt.exe, so work around this by forcing to use the WoW64 hive.
142
+ KEY_READ | KEY_WOW64_32KEY,
143
&key))
144
{
145
throw std::invalid_argument("Could not find the Windows SDK in the registry");
0 commit comments