Skip to content
Snippets Groups Projects
Commit 584e7ffd authored by chrfranke's avatar chrfranke
Browse files

os_win32.cpp: Decode Windows 10 1903 and Server 1903 build number.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@4926 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 252ec941
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ $Id$ ...@@ -2,6 +2,8 @@ $Id$
2019-06-19 Christian Franke <franke@computer.org> 2019-06-19 Christian Franke <franke@computer.org>
os_win32.cpp: Decode Windows 10 1903 and Server 1903 build number.
smartctl.8.in: Fix typo introduced 15 years ago in r1789. smartctl.8.in: Fix typo introduced 15 years ago in r1789.
drivedb.h: drivedb.h:
......
...@@ -4025,6 +4025,7 @@ std::string win_smart_interface::get_os_version_str() ...@@ -4025,6 +4025,7 @@ std::string win_smart_interface::get_os_version_str()
case 16299: w = "w10-1709"; break; case 16299: w = "w10-1709"; break;
case 17134: w = "w10-1803"; break; case 17134: w = "w10-1803"; break;
case 17763: w = "w10-1809"; break; case 17763: w = "w10-1809"; break;
case 18362: w = "w10-1903"; break;
default: w = "w10"; default: w = "w10";
build = vi.dwBuildNumber; break; build = vi.dwBuildNumber; break;
} break; } break;
...@@ -4034,6 +4035,7 @@ std::string win_smart_interface::get_os_version_str() ...@@ -4034,6 +4035,7 @@ std::string win_smart_interface::get_os_version_str()
case 16299: w = "2016-1709"; break; case 16299: w = "2016-1709"; break;
case 17134: w = "2016-1803"; break; case 17134: w = "2016-1803"; break;
case 17763: w = "2019"; break; case 17763: w = "2019"; break;
case 18362: w = "2019-1903"; break;
default: w = (vi.dwBuildNumber < 17763 default: w = (vi.dwBuildNumber < 17763
? "2016" ? "2016"
: "2019"); : "2019");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment