From 62afabaef912c341425c72beab2ecee396ed8b42 Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sat, 21 Aug 2021 17:41:29 +0000
Subject: [PATCH] os_win32.cpp: Decode Windows 10 21H1 build number.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5229 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 smartmontools/ChangeLog    | 2 ++
 smartmontools/os_win32.cpp | 1 +
 2 files changed, 3 insertions(+)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index 8e99d5ad9..df357a0dc 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -2,6 +2,8 @@ $Id$
 
 2021-08-21  Christian Franke  <franke@computer.org>
 
+	os_win32.cpp: Decode Windows 10 21H1 build number.
+
 	configure.ac: Add '-Werror=return-type' if supported.
 	G++ >= 8.0 assumes that control never reaches the end of a
 	non-void function (GCC Bugzilla 96181).
diff --git a/smartmontools/os_win32.cpp b/smartmontools/os_win32.cpp
index f31bc34e9..07a4723af 100644
--- a/smartmontools/os_win32.cpp
+++ b/smartmontools/os_win32.cpp
@@ -4003,6 +4003,7 @@ std::string win_smart_interface::get_os_version_str()
           case 18363:   w = "w10-1909"; break;
           case 19041:   w = "w10-2004"; break;
           case 19042:   w = "w10-20H2"; break;
+          case 19043:   w = "w10-21H1"; break;
           default:      w = "w10";
                         build = vi.dwBuildNumber; break;
         } break;
-- 
GitLab