Add error-checking code which we hope will fix bug 88961, a top-crasher in __ptr_glue. r=bnesse, sr=blake

This commit is contained in:
sfraser%netscape.com 2001-08-17 00:48:46 +00:00
Родитель 5893e07753
Коммит 95d7ff160d
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -579,7 +579,9 @@ nsGlobalHistory::AddPageToDatabase(const char *aURL,
// update the database, and get the old info back // update the database, and get the old info back
PRInt64 oldDate; PRInt64 oldDate;
PRInt32 oldCount; PRInt32 oldCount;
AddExistingPageToDatabase(row, aDate, &oldDate, &oldCount); rv = AddExistingPageToDatabase(row, aDate, &oldDate, &oldCount);
NS_ASSERTION(NS_SUCCEEDED(rv), "AddExistingPageToDatabase failed; see bug 88961");
if (NS_FAILED(rv)) return rv;
// Notify observers // Notify observers
@ -606,7 +608,9 @@ nsGlobalHistory::AddPageToDatabase(const char *aURL,
} }
else { else {
AddNewPageToDatabase(aURL, aDate, getter_Acquires(row)); rv = AddNewPageToDatabase(aURL, aDate, getter_Acquires(row));
NS_ASSERTION(NS_SUCCEEDED(rv), "AddNewPageToDatabase failed; see bug 88961");
if (NS_FAILED(rv)) return rv;
// Notify observers // Notify observers
rv = NotifyAssert(url, kNC_Date, date); rv = NotifyAssert(url, kNC_Date, date);