Bug 726797 - Multi-GPU Detection Broken on Windows Gecko 11. r=ajuma

This commit is contained in:
Justin Wood 2012-02-16 21:14:53 -05:00
parent 14ee138e59
commit b7318e3fe9

View File

@ -511,6 +511,10 @@ GfxInfo::Init()
driverDate2 = value;
dwcbData = sizeof(value);
result = RegQueryValueExW(key, L"Device Description", NULL, NULL, (LPBYTE)value, &dwcbData);
if (result != ERROR_SUCCESS) {
dwcbData = sizeof(value);
result = RegQueryValueExW(key, L"DriverDesc", NULL, NULL, (LPBYTE)value, &dwcbData);
}
RegCloseKey(key);
if (result == ERROR_SUCCESS) {
mHasDualGPU = true;