Add detection of Windows 8 and Windows Server 2012
svn path=/trunk/; revision=46881
This commit is contained in:
parent
7e30804155
commit
dad3ca304a
|
@ -474,6 +474,9 @@ void get_os_version_info(GString *str)
|
|||
case 1:
|
||||
g_string_append_printf(str, is_nt_workstation ? "Windows 7" : "Windows Server 2008 R2");
|
||||
break;
|
||||
case 2:
|
||||
g_string_append_printf(str, is_nt_workstation ? "Windows 8" : "Windows Server 2012");
|
||||
break;
|
||||
default:
|
||||
g_string_append_printf(str, "Windows NT, unknown version %lu.%lu",
|
||||
info.dwMajorVersion, info.dwMinorVersion);
|
||||
|
|
Loading…
Reference in New Issue