fix semantics of these pref methods to match other pref methods and don't throw exceptions even on failure

r=sspitzer
This commit is contained in:
alecf%netscape.com 2000-04-03 06:58:58 +00:00
parent 5fd1e516f9
commit 5dec8ab6b2

View File

@ -103,7 +103,9 @@ nsSmtpServer::GetTrySSL(PRInt32 *trySSL)
if (NS_FAILED(rv)) return rv;
*trySSL= 0;
getPrefString("try_ssl", pref);
return prefs->GetIntPref(pref, trySSL);
rv = prefs->GetIntPref(pref, trySSL);
if (NS_FAILED(rv)) *trySSL = 0;
return NS_OK;
}
NS_IMETHODIMP
@ -127,7 +129,9 @@ nsSmtpServer::GetAuthMethod(PRInt32 *authMethod)
if (NS_FAILED(rv)) return rv;
*authMethod = 0;
getPrefString("auth_method", pref);
return prefs->GetIntPref(pref, authMethod);
rv = prefs->GetIntPref(pref, authMethod);
if (NS_FAILED(rv)) *authMethod = 0;
return NS_OK;
}
NS_IMETHODIMP