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:
hyatt%netscape.com 2000-02-15 11:51:12 +00:00
parent f12ab693eb
commit ea37a90dfc

View File

@ -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;
}
}
}
}