fix crash running filter after the fact when a move/copy target folder is gone, sr=mscott 322283

This commit is contained in:
bienvenu%nventure.com 2006-01-05 19:52:12 +00:00
Родитель 6d8e95ed4f
Коммит 375a4ef6d0
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -139,11 +139,15 @@ NS_IMETHODIMP nsMsgFilterService::CloseFilterList(nsIMsgFilterList *filterList)
/* save without deleting */
NS_IMETHODIMP nsMsgFilterService::SaveFilterList(nsIMsgFilterList *filterList, nsIFileSpec *filterFile)
{
NS_ENSURE_ARG_POINTER(filterFile);
NS_ENSURE_ARG_POINTER(filterList);
nsresult ret = NS_OK;
nsCOMPtr <nsIFileSpec> tmpFiltersFile;
nsCOMPtr <nsIFileSpec> realFiltersFile;
nsCOMPtr <nsIFileSpec> parentDir;
nsSpecialSystemDirectory tmpFile(nsSpecialSystemDirectory::OS_TemporaryDirectory);
tmpFile += "tmprules.dat";