Skip to content

Commit

Permalink
os_win32.cpp: Decode Windows 11 23H2 and 24H2 build numbers.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools@5615 4ea69e1a-61f1-4043-bf83-b5c94c648137
  • Loading branch information
chrfranke committed Sep 23, 2024
1 parent c199b4f commit 4cbc2fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ $Id$

2024-09-23 Christian Franke <[email protected]>

os_win32.cpp: Decode Windows 11 23H2 and 24H2 build numbers.

drivedb.h:
- Toshiba MG09ACA... Enterprise Capacity HDD: 10-14GB,
Lenovo OEM (#1876).
Expand Down
4 changes: 3 additions & 1 deletion os_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Home page of code is: https://www.smartmontools.org
*
* Copyright (C) 2004-22 Christian Franke
* Copyright (C) 2004-24 Christian Franke
*
* Original AACRaid code:
* Copyright (C) 2015 Nidhi Malhotra <[email protected]>
Expand Down Expand Up @@ -4165,6 +4165,8 @@ std::string win_smart_interface::get_os_version_str()
case 19045: w = "w10-22H2"; break;
case 22000: w = "w11-21H2"; break;
case 22621: w = "w11-22H2"; break;
case 22631: w = "w11-23H2"; break;
case 26100: w = "w11-24H2"; break;
default: w = (vi.dwBuildNumber < 22000
? "w10"
: "w11");
Expand Down

0 comments on commit 4cbc2fc

Please sign in to comment.