fix for #129955. LDAP search doesn't work if you don't have maxHits defined.

r=dmose,sr=mscott,a=shaver
This commit is contained in:
sspitzer%netscape.com 2002-03-12 05:30:19 +00:00
Родитель a5be78e5e1
Коммит 69b1b826f6
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -325,7 +325,8 @@ NS_IMETHODIMP nsAbLDAPDirectory::StartSearch ()
// turn moz-abldapdirectory://ldap_2.servers.nscpphonebook into -> "ldap_2.servers.nscpphonebook.maxHits" // turn moz-abldapdirectory://ldap_2.servers.nscpphonebook into -> "ldap_2.servers.nscpphonebook.maxHits"
PRInt32 maxHits; PRInt32 maxHits;
rv = prefs->GetIntPref(prefName.get(), &maxHits); rv = prefs->GetIntPref(prefName.get(), &maxHits);
NS_ENSURE_SUCCESS(rv,rv); if (NS_FAILED(rv))
maxHits = 100;
// Perform the query // Perform the query
rv = DoQuery(arguments, queryListener, maxHits, 0, &mContext); rv = DoQuery(arguments, queryListener, maxHits, 0, &mContext);