зеркало из https://github.com/mozilla/pjs.git
59501 r=naving sr=bienvenu. Thanks to spayne@dccnet.com for providing the patch.
Propagate return values.
This commit is contained in:
Родитель
693db71c83
Коммит
439e45f563
|
@ -200,7 +200,8 @@ nsNNTPNewsgroupList::GetDatabase(const char *uri, nsIMsgDatabase **db)
|
|||
printf ("newsDBFactory->Open() failed\n");
|
||||
}
|
||||
#endif /* DEBUG_NEWS */
|
||||
return rv;
|
||||
// return the error
|
||||
return newsDBOpen;
|
||||
}
|
||||
#ifdef DEBUG_NEWS
|
||||
else {
|
||||
|
@ -284,6 +285,9 @@ nsNNTPNewsgroupList::GetRangeOfArtsToDownload(nsIMsgWindow * aMsgWindow,
|
|||
if (!m_newsDB) {
|
||||
nsresult err;
|
||||
if ((err = GetDatabase(GetURI(), &m_newsDB)) != NS_OK) {
|
||||
// set the status to -1 to tell state machine to stop
|
||||
// processing
|
||||
if (status) *status=-1;
|
||||
return err;
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче