Browse Source

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

Vladislav Vaintroub 12 years ago
parent
commit
b0d98371b9
  1. 6
      plugin/feedback/utils.cc

6
plugin/feedback/utils.cc

@ -44,12 +44,16 @@ static const char *get_os_version_name(OSVERSIONINFOEX *ver)
DWORD major = ver->dwMajorVersion;
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)
{
return (ver->wProductType == VER_NT_WORKSTATION)?
"Windows 8":"Windows Server 2012";
}
if (major == 6 && minor == 1)
{
return (ver->wProductType == VER_NT_WORKSTATION)?

Loading…
Cancel
Save