зеркало из https://github.com/mozilla/pjs.git
fix for #51540. the key we pass to the folder cache is the persistent file
descriptor string for the .msf file for the folder. in some cases, we don't have a .msf file yet. on win32 and linux, this string was null. on the mac, bless its little heart, this was "". so we were writing and reading to the same cache element for all the folders, since we were using "" as the key. r=bienvenu
This commit is contained in:
Родитель
cd24f66546
Коммит
ebb8be5713
|
@ -383,7 +383,11 @@ NS_IMETHODIMP nsMsgFolderCache::GetCacheElement(const char *pathKey, PRBool crea
|
|||
|
||||
if (!result || !pathKey)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
|
||||
if (nsCRT::strlen(pathKey) == 0) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsCStringKey hashKey(pathKey);
|
||||
|
||||
*result = (nsIMsgFolderCacheElement *) m_cacheElements->Get(&hashKey);
|
||||
|
|
Загрузка…
Ссылка в новой задаче