Add identification of Windows 8.1 / Windows Server 2012 R2

svn path=/trunk/; revision=52305
This commit is contained in:
Pascal Quantin 2013-09-30 20:14:42 +00:00
parent 1e5ff9125a
commit 5e641a636c
1 changed files with 3 additions and 0 deletions

View File

@ -480,6 +480,9 @@ void get_os_version_info(GString *str)
case 2:
g_string_append_printf(str, is_nt_workstation ? "Windows 8" : "Windows Server 2012");
break;
case 3:
g_string_append_printf(str, is_nt_workstation ? "Windows 8.1" : "Windows Server 2012 R2");
break;
default:
g_string_append_printf(str, "Windows NT, unknown version %lu.%lu",
info.dwMajorVersion, info.dwMinorVersion);