Fix a crasher in openMDB because we were returning a wrong error code. R=chuang

This commit is contained in:
ducarroz%netscape.com 2000-04-30 21:45:08 +00:00
Родитель eabb20fd43
Коммит 92673a754c
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -708,6 +708,9 @@ NS_IMETHODIMP nsAddrDatabase::OpenMDB(nsFileSpec *dbName, PRBool create)
}
}
}
//Convert the DB error to a valid nsresult error.
if (ret == 1)
ret = NS_ERROR_FAILURE;
return ret;
}