зеркало из https://github.com/mozilla/pjs.git
fix db cache lookup bug
This commit is contained in:
Родитель
faab5fe4e4
Коммит
fcea7370e3
|
@ -211,7 +211,7 @@ int nsMsgDatabase::FindInCache(nsMsgDatabase* pMessageDB)
|
|||
PRBool nsMsgDatabase::MatchDbName(nsFilePath &dbName) // returns PR_TRUE if they match
|
||||
{
|
||||
// ### we need equality operators for nsFileSpec...
|
||||
return strcmp(dbName, m_dbName);
|
||||
return !strcmp(dbName, m_dbName);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
@ -275,12 +275,9 @@ nsrefcnt nsMsgDatabase::AddRef(void)
|
|||
nsrefcnt nsMsgDatabase::Release(void)
|
||||
{
|
||||
NS_PRECONDITION(0 != mRefCnt, "dup release");
|
||||
if (--mRefCnt == 0)
|
||||
{
|
||||
delete this;
|
||||
return 0;
|
||||
}
|
||||
return mRefCnt;
|
||||
PRInt32 saveRefCnt = mRefCnt;
|
||||
Close(FALSE);
|
||||
return saveRefCnt - 1;
|
||||
}
|
||||
|
||||
extern nsIMdbFactory *NS_NewIMdbFactory();
|
||||
|
|
Загрузка…
Ссылка в новой задаче