makepanda: fix locating UCRT when building with Windows SDK 7.1A

[skip ci]
This commit is contained in:
rdb 2019-08-14 09:01:10 +02:00
parent 8f9d0ab6f6
commit 999d1f74f7

View File

@ -2789,7 +2789,7 @@ def SetupVisualStudioEnviron():
# Targeting the 7.1 SDK (which is the only way to have Windows XP support) # Targeting the 7.1 SDK (which is the only way to have Windows XP support)
# with Visual Studio 2015 requires use of the Universal CRT. # with Visual Studio 2015 requires use of the Universal CRT.
if winsdk_ver == '7.1' and SDK["VISUALSTUDIO_VERSION"] >= (14,0): if winsdk_ver in ('7.1', '7.1A') and SDK["VISUALSTUDIO_VERSION"] >= (14,0):
win_kit = GetRegistryKey("SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots", "KitsRoot10") win_kit = GetRegistryKey("SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots", "KitsRoot10")
# Fallback in case we can't read the registry. # Fallback in case we can't read the registry.