fixed a crash in latestSDK10Version when the registry value is not found
This commit is contained in:
parent
7017f09263
commit
928076a13a
@ -2498,7 +2498,11 @@
|
||||
function m.latestSDK10Version()
|
||||
local arch = iif(os.is64bit(), "\\WOW6432Node\\", "\\")
|
||||
local version = os.getWindowsRegistry("HKLM:SOFTWARE" .. arch .."Microsoft\\Microsoft SDKs\\Windows\\v10.0\\ProductVersion")
|
||||
return iif(version ~= nil, version .. ".0", nil)
|
||||
if version ~= nil then
|
||||
return version .. ".0"
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user