No error check retrieving submenu delay on Win32. r=rods
git-svn-id: svn://10.0.0.236/trunk@60869 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f12ab693eb
commit
ea37a90dfc
@ -262,11 +262,13 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric)
|
||||
|
||||
::RegCloseKey(key);
|
||||
|
||||
PRInt32 errorCode;
|
||||
nsString str(value);
|
||||
PRInt32 submenuDelay = str.ToInteger(&errorCode);
|
||||
if (errorCode == NS_OK) {
|
||||
sSubmenuDelay = submenuDelay;
|
||||
if (result == ERROR_SUCCESS) {
|
||||
PRInt32 errorCode;
|
||||
nsString str(value);
|
||||
PRInt32 submenuDelay = str.ToInteger(&errorCode);
|
||||
if (errorCode == NS_OK) {
|
||||
sSubmenuDelay = submenuDelay;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user