desktop/version: Attempt to identify Windows 11 GA
This is based on current rumours circulating on Windows 11 release day. It needs to be fact-checked and tested on live systems.
This commit is contained in:
parent
7d04b80385
commit
2c103cc63a
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ std::string os_version()
|
|||
break;
|
||||
case 1000:
|
||||
if(v.wProductType == VER_NT_WORKSTATION) {
|
||||
version = "10";
|
||||
version = v.dwBuildNumber < 22000 ? "10" : "11";
|
||||
const auto& release_id = windows_release_id();
|
||||
if(!release_id.empty()) {
|
||||
version += ' ';
|
||||
|
|
Loading…
Add table
Reference in a new issue