summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qsysinfo.cpp
diff options
context:
space:
mode:
authorDavid Warner <david@warnr.net>2024-11-19 22:39:14 +1100
committerThiago Macieira <thiago.macieira@intel.com>2024-11-20 18:30:00 -0800
commitc20c7814f4f43af00ef14fb41b2b25ca86539abf (patch)
treed850bc740c6f4580004eb25e6aece90571bf8c28 /src/corelib/global/qsysinfo.cpp
parent67a71d71093b50d0db172b92aa1b548a1a2bd959 (diff)
Recognize Windows Server 2025 build number
Pick-to: 6.8 Fixes: QTBUG-131395 Change-Id: If3c4d6371b21720be4cbecc1508f83c9b3526751 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Diffstat (limited to 'src/corelib/global/qsysinfo.cpp')
-rw-r--r--src/corelib/global/qsysinfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/global/qsysinfo.cpp b/src/corelib/global/qsysinfo.cpp
index a79a4d3bb84..b7813f4cbbb 100644
--- a/src/corelib/global/qsysinfo.cpp
+++ b/src/corelib/global/qsysinfo.cpp
@@ -197,6 +197,8 @@ static const char *osVer_helper(QOperatingSystemVersion version = QOperatingSyst
return "10";
}
// else: Server
+ if (osver.dwBuildNumber >= 26100)
+ return "Server 2025";
if (osver.dwBuildNumber >= 20348)
return "Server 2022";
if (osver.dwBuildNumber >= 17763)