Fixed: Newer drivers with registry values introduced in Windows 8.1 were treated incorrectly in earlier versions of Windows.

This commit is contained in:
jthedering committed 2013-12-18 21:29:51 +00:00
1 parent 0904587ac6
commit e0016d941c
8 files changed
+116 -26

No files matched your search

+4 -3
View File
@@ -102,8 +102,9 @@ bool DeviceAPOInfo::load(const wstring& deviceGuid)
if(!found)
found = tryAPOGuid(keyPath, gfxGuidValueName2, false, true);
foundAPO2Values = RegistryHelper::valueExists(keyPath + L"\\FxProperties", lfxGuidValueName2)
|| RegistryHelper::valueExists(keyPath + L"\\FxProperties", gfxGuidValueName2);
foundAPO2Values = RegistryHelper::isWindowsVersionAtLeast(6, 3) // Windows 8.1
&& (RegistryHelper::valueExists(keyPath + L"\\FxProperties", lfxGuidValueName2)
|| RegistryHelper::valueExists(keyPath + L"\\FxProperties", gfxGuidValueName2));
if(found)
{
@@ -257,4 +258,4 @@ bool DeviceAPOInfo::tryAPOGuid(const wstring& keyPath, const wchar_t* valueName,
}
return false;
}
}