Commit b0d98371 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Update feedback plugin to recognize Windows 8.1 / Windows Server 2012 R2.

parent 28ec3727
...@@ -44,12 +44,16 @@ static const char *get_os_version_name(OSVERSIONINFOEX *ver) ...@@ -44,12 +44,16 @@ static const char *get_os_version_name(OSVERSIONINFOEX *ver)
DWORD major = ver->dwMajorVersion; DWORD major = ver->dwMajorVersion;
DWORD minor = ver->dwMinorVersion; DWORD minor = ver->dwMinorVersion;
if (major == 6 && minor == 3)
{
return (ver->wProductType == VER_NT_WORKSTATION)?
"Windows 8.1":"Windows Server 2012 R2";
}
if (major == 6 && minor == 2) if (major == 6 && minor == 2)
{ {
return (ver->wProductType == VER_NT_WORKSTATION)? return (ver->wProductType == VER_NT_WORKSTATION)?
"Windows 8":"Windows Server 2012"; "Windows 8":"Windows Server 2012";
} }
if (major == 6 && minor == 1) if (major == 6 && minor == 1)
{ {
return (ver->wProductType == VER_NT_WORKSTATION)? return (ver->wProductType == VER_NT_WORKSTATION)?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment