diff --git a/modules/vstudio/vs2010_vcxproj.lua b/modules/vstudio/vs2010_vcxproj.lua index 7d1befa7..e4e83685 100644 --- a/modules/vstudio/vs2010_vcxproj.lua +++ b/modules/vstudio/vs2010_vcxproj.lua @@ -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