summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-10-20 23:57:48 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-01-12 21:30:43 +0200
commita3d14e89a3a8102119e36e86cf3cd31c161b3826 (patch)
tree05cf085cb5dc6e1e23f07ee0d7830cccfbc1903f /indra/llcommon
parent59356963c4a34081a0c0fb0235c267c06fbcb832 (diff)
SL-15997 Windows 11 detection
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llsys.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp
index 2ca15a31c6..3190dbafcc 100644
--- a/indra/llcommon/llsys.cpp
+++ b/indra/llcommon/llsys.cpp
@@ -107,7 +107,7 @@ LLOSInfo::LLOSInfo() :
#if LL_WINDOWS
- if (IsWindowsVersionOrGreater(10, 0, 0))
+ if (IsWindows10OrGreater())
{
mMajorVer = 10;
mMinorVer = 0;
@@ -240,6 +240,21 @@ LLOSInfo::LLOSInfo() :
ubr = data;
}
}
+
+ if (mBuild >= 22000)
+ {
+ // At release Windows 11 version was 10.0.22000.194
+ // Windows 10 version was 10.0.19043.1266
+ // There is no warranty that Win10 build won't increase,
+ // so until better solution is found or Microsoft updates
+ // SDK with IsWindows11OrGreater(), indicate "10/11"
+ //
+ // Current alternatives:
+ // Query WMI's Win32_OperatingSystem for OS string. Slow
+ // and likely to return 'compatibility' string.
+ // Check presence of dlls/libs or may be their version.
+ mOSStringSimple = "Microsoft Windows 10/11";
+ }
}
mOSString = mOSStringSimple;