зеркало из https://github.com/mozilla/pjs.git
bug 309935 correctly check for errors from SystemParametersInfo, fixing
screenreader detection on win 9x. r=aaronl sr=roc
This commit is contained in:
Родитель
593ade141b
Коммит
7f367069cd
|
@ -435,7 +435,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
|||
break;
|
||||
case eMetric_IsScreenReaderActive:
|
||||
BOOL isScreenReaderActive;
|
||||
aMetric = SUCCEEDED(SystemParametersInfo(SPI_GETSCREENREADER, 0, &isScreenReaderActive, 0)) &&
|
||||
aMetric = SystemParametersInfo(SPI_GETSCREENREADER, 0, &isScreenReaderActive, 0) &&
|
||||
isScreenReaderActive;
|
||||
break;
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче