зеркало из https://github.com/mozilla/gecko-dev.git
Bug 789830 - Graphics driver DriverVersion and DriverDate no longer present in registry with some Windows 8 installs, breaking about:support and driver blacklisting. Assume a driver version of 0.0.0.0 in such cases. r=joe
This commit is contained in:
Родитель
8946c36817
Коммит
e842bcc287
|
@ -315,12 +315,20 @@ GfxInfo::Init()
|
||||||
/* we've found the driver we're looking for */
|
/* we've found the driver we're looking for */
|
||||||
dwcbData = sizeof(value);
|
dwcbData = sizeof(value);
|
||||||
result = RegQueryValueExW(key, L"DriverVersion", NULL, NULL, (LPBYTE)value, &dwcbData);
|
result = RegQueryValueExW(key, L"DriverVersion", NULL, NULL, (LPBYTE)value, &dwcbData);
|
||||||
if (result == ERROR_SUCCESS)
|
if (result == ERROR_SUCCESS) {
|
||||||
mDriverVersion = value;
|
mDriverVersion = value;
|
||||||
|
} else {
|
||||||
|
// If the entry wasn't found, assume the worst (0.0.0.0).
|
||||||
|
mDriverVersion.AssignLiteral("0.0.0.0");
|
||||||
|
}
|
||||||
dwcbData = sizeof(value);
|
dwcbData = sizeof(value);
|
||||||
result = RegQueryValueExW(key, L"DriverDate", NULL, NULL, (LPBYTE)value, &dwcbData);
|
result = RegQueryValueExW(key, L"DriverDate", NULL, NULL, (LPBYTE)value, &dwcbData);
|
||||||
if (result == ERROR_SUCCESS)
|
if (result == ERROR_SUCCESS) {
|
||||||
mDriverDate = value;
|
mDriverDate = value;
|
||||||
|
} else {
|
||||||
|
// Again, assume the worst
|
||||||
|
mDriverDate.AssignLiteral("01-01-1970");
|
||||||
|
}
|
||||||
RegCloseKey(key);
|
RegCloseKey(key);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче