fix downloading news when news directory is missing, patch by gemal.dk, r/sr=me 209641

This commit is contained in:
bienvenu%nventure.com 2003-11-10 23:38:10 +00:00
Родитель c3c15dce0c
Коммит 81cb7bd2b1
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -347,6 +347,8 @@ nsMsgNewsFolder::GetSubFolders(nsIEnumerator* *result)
rv = pathSpec->GetFileSpec(&path); rv = pathSpec->GetFileSpec(&path);
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
nsFileSpec tempPath(path.GetNativePathCString(), PR_TRUE);
rv = CreateSubFolders(path); rv = CreateSubFolders(path);
if (NS_FAILED(rv)) return rv; if (NS_FAILED(rv)) return rv;
@ -871,13 +873,13 @@ NS_IMETHODIMP nsMsgNewsFolder::GetExpungedBytesCount(PRUint32 *count)
NS_IMETHODIMP nsMsgNewsFolder::GetDeletable(PRBool *deletable) NS_IMETHODIMP nsMsgNewsFolder::GetDeletable(PRBool *deletable)
{ {
NS_ASSERTION(0,"GetDeletable() not implemented"); // NS_ASSERTION(0,"GetDeletable() not implemented");
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }
NS_IMETHODIMP nsMsgNewsFolder::GetRequiresCleanup(PRBool *requiresCleanup) NS_IMETHODIMP nsMsgNewsFolder::GetRequiresCleanup(PRBool *requiresCleanup)
{ {
NS_ASSERTION(0,"GetRequiresCleanup not implemented"); // NS_ASSERTION(0,"GetRequiresCleanup not implemented");
return NS_ERROR_NOT_IMPLEMENTED; return NS_ERROR_NOT_IMPLEMENTED;
} }