Skip to content

Commit

Permalink
Recognize Windows Server 2025 build number
Browse files Browse the repository at this point in the history
Fixes: QTBUG-131395
Change-Id: If3c4d6371b21720be4cbecc1508f83c9b3526751
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
(cherry picked from commit c20c781)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
  • Loading branch information
Quppa authored and Qt Cherry-pick Bot committed Nov 21, 2024
1 parent 1547be2 commit 177761f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/corelib/global/qsysinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,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)
Expand Down

0 comments on commit 177761f

Please sign in to comment.