change GetLastVisitDate semantics back to the way they were before - avoids a runtime assertion in nsWebShell.cpp

This commit is contained in:
alecf%netscape.com 2001-03-08 07:07:19 +00:00
parent 82f71853c7
commit d3b787642e

View File

@ -1022,8 +1022,10 @@ nsGlobalHistory::GetLastVisitDate(const char *aURL, PRInt64 *_retval)
nsMdbPtr<nsIMdbRow> row(mEnv);
rv = FindRow(kToken_URLColumn, aURL, getter_Acquires(row));
if (NS_FAILED(rv)) return rv;
if (!row) return NS_ERROR_FAILURE;
if (NS_FAILED(rv)|| !row) {
*_retval = LL_ZERO;
return NS_OK;
}
return GetRowValue(row, kToken_LastVisitDateColumn, _retval);