From cb01bb2c201121a81d265effd2cd6a44a189cfa2 Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Fri, 18 Oct 2013 10:23:17 -0600 Subject: [PATCH] Updated to support Windows 8.1 --- Plugins/PluginSysInfo/SysInfo.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Plugins/PluginSysInfo/SysInfo.cpp b/Plugins/PluginSysInfo/SysInfo.cpp index 362ebdf7..a1387011 100644 --- a/Plugins/PluginSysInfo/SysInfo.cpp +++ b/Plugins/PluginSysInfo/SysInfo.cpp @@ -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"; }