[common] properly detect all versions of Windows 8

This commit is contained in:
Geoffrey McRae 2020-01-06 20:55:21 +11:00
parent 5db4c32035
commit b8203bec53
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
B1-55-g7469f54122+1
B1-55-g5db4c32035+1

View File

@ -60,5 +60,7 @@ inline static BOOL CompareWindowsVersion(DWORD dwMajorVersion, DWORD dwMinorVers
bool IsWindows8()
{
return CompareWindowsVersion(6, 3) == TRUE;
return
(CompareWindowsVersion(6, 3) == TRUE) ||
(CompareWindowsVersion(6, 2) == TRUE);
}