Bug 202798 - Save page as fails when downloads.rdf does not exist (new Profile) r=varga/sr=sfraser

This commit is contained in:
ccarlen%netscape.com 2003-04-21 21:43:38 +00:00
Родитель bceb6e8e90
Коммит 477e2b7087
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -938,8 +938,11 @@ NS_IMETHODIMP nsLocalFile::IsDirectory(PRBool *_retval)
FSRef fsRef;
nsresult rv = GetFSRefInternal(fsRef, PR_FALSE);
// CFURLGetFSRef only returns a Boolean for success,
// so we have to assume what the error was. This is
// the only probable cause.
if (NS_FAILED(rv))
return rv;
return NS_ERROR_FILE_NOT_FOUND;
FSCatalogInfo catalogInfo;
OSErr err = ::FSGetCatalogInfo(&fsRef, kFSCatInfoNodeFlags, &catalogInfo,
@ -958,8 +961,11 @@ NS_IMETHODIMP nsLocalFile::IsFile(PRBool *_retval)
FSRef fsRef;
nsresult rv = GetFSRefInternal(fsRef, PR_FALSE);
// CFURLGetFSRef only returns a Boolean for success,
// so we have to assume what the error was. This is
// the only probable cause.
if (NS_FAILED(rv))
return rv;
return NS_ERROR_FILE_NOT_FOUND;
FSCatalogInfo catalogInfo;
OSErr err = ::FSGetCatalogInfo(&fsRef, kFSCatInfoNodeFlags, &catalogInfo,