Updated to support Windows 8.1

This commit is contained in:
Brian Ferguson 2013-10-18 10:23:17 -06:00
parent f6461a1b30
commit cb01bb2c20

View File

@ -465,7 +465,15 @@ LPCWSTR GetPlatformName()
}
else
{
if (osvi.dwMinorVersion == 2 && osvi.wProductType == VER_NT_WORKSTATION)
if (osvi.dwMinorVersion == 3 && osvi.wProductType == VER_NT_WORKSTATION)
{
return L"Windows 8.1";
}
else if (osvi.dwMinorVersion == 3 && osvi.wProductType != VER_NT_WORKSTATION)
{
return L"Windows Server 2012 R2";
}
else if (osvi.dwMinorVersion == 2 && osvi.wProductType == VER_NT_WORKSTATION)
{
return L"Windows 8";
}