]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix registry key for Windows SDK detection (GH-12445)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Mar 2019 21:54:59 +0000 (14:54 -0700)
committerNed Deily <nad@python.org>
Mon, 25 Mar 2019 02:22:51 +0000 (22:22 -0400)
(cherry picked from commit aedc273fd90e31c7a20904568de3115f8957395b)

Co-authored-by: Isuru Fernando <isuruf@gmail.com>
PCbuild/python.props

index f83d4df0d59fa4b5a55a5471c95c6b0836441bee..683fbb6e6f848e20edd534d11c08a65cbd0d3a09 100644 (file)
@@ -76,7 +76,7 @@
     matter which WinSDK version we use.
     -->
     <_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
-    <_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
+    <_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
     <!-- Sometimes the version in the registry has to .0 suffix, and sometimes it doesn't. Check and add it -->
     <_RegistryVersion Condition="$(_RegistryVersion) != '' and !$(_RegistryVersion.EndsWith('.0'))">$(_RegistryVersion).0</_RegistryVersion>