Skip to content

Commit

Permalink
Recognize Windows Server 2025 build number
Browse files Browse the repository at this point in the history
Pick-to: 6.8
Fixes: QTBUG-131395
Change-Id: If3c4d6371b21720be4cbecc1508f83c9b3526751
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
  • Loading branch information
Quppa authored and thiagomacieira committed Nov 21, 2024
1 parent 67a71d7 commit c20c781
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 @@ -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)
Expand Down

0 comments on commit c20c781

Please sign in to comment.