зеркало из https://github.com/mozilla/pjs.git
Bug96053 Executing a Query may not return an end-of-query,
fixed by john.marmion@ireland.sun.com., r=chuang, sr=mscott, a=asa
This commit is contained in:
Родитель
2e9a8135f3
Коммит
50949a6c53
|
@ -1050,13 +1050,12 @@ nsresult nsAbOutlookDirectory::ExecuteQuery(nsIAbDirectoryQueryArguments *aArgum
|
|||
nsCOMPtr<nsIAbDirectoryQueryResult> result ;
|
||||
nsAbDirectoryQueryResult *newResult = nsnull ;
|
||||
|
||||
if (nbResults == 0) {
|
||||
newResult = new nsAbDirectoryQueryResult(0, aArguments,
|
||||
nsIAbDirectoryQueryResult::queryResultComplete,
|
||||
0) ;
|
||||
result = newResult ;
|
||||
aListener->OnQueryItem(result) ;
|
||||
}
|
||||
newResult = new nsAbDirectoryQueryResult(0, aArguments,
|
||||
nsIAbDirectoryQueryResult::queryResultComplete,
|
||||
0) ;
|
||||
result = newResult ;
|
||||
aListener->OnQueryItem(result) ;
|
||||
|
||||
if (aResultLimit > 0 && nbResults > NS_STATIC_CAST(PRUint32, aResultLimit)) {
|
||||
nbResults = NS_STATIC_CAST(PRUint32, aResultLimit) ;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче