mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 09:01:16 +00:00
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:
parent
8946c36817
commit
e842bcc287
@ -315,12 +315,20 @@ GfxInfo::Init()
|
||||
/* we've found the driver we're looking for */
|
||||
dwcbData = sizeof(value);
|
||||
result = RegQueryValueExW(key, L"DriverVersion", NULL, NULL, (LPBYTE)value, &dwcbData);
|
||||
if (result == ERROR_SUCCESS)
|
||||
if (result == ERROR_SUCCESS) {
|
||||
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);
|
||||
result = RegQueryValueExW(key, L"DriverDate", NULL, NULL, (LPBYTE)value, &dwcbData);
|
||||
if (result == ERROR_SUCCESS)
|
||||
if (result == ERROR_SUCCESS) {
|
||||
mDriverDate = value;
|
||||
} else {
|
||||
// Again, assume the worst
|
||||
mDriverDate.AssignLiteral("01-01-1970");
|
||||
}
|
||||
RegCloseKey(key);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user