Report a useful error when encountering a CFM app path in a Mach-o build. Bug

166369, patch by biesi, r=bzbarsky, sr=sfaser.
This commit is contained in:
bzbarsky%mit.edu 2003-10-19 21:36:39 +00:00
Родитель 8747fc4ba9
Коммит d595463f9b
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -65,7 +65,7 @@ NS_IMETHODIMP nsOSHelperAppService::LaunchAppWithTempFile(nsIMIMEInfo * aMIMEInf
aMIMEInfo->GetDefaultApplicationHandler(getter_AddRefs(application));
if (!application)
return NS_ERROR_FAILURE;
return NS_ERROR_FILE_NOT_FOUND;
nsCOMPtr<nsILocalFileMac> app = do_QueryInterface(application, &rv);
if (NS_FAILED(rv)) return rv;
@ -176,7 +176,9 @@ nsresult nsOSHelperAppService::GetFileTokenForPath(const PRUnichar * platformApp
if (!localFile)
return NS_ERROR_FAILURE;
localFile->InitWithPath(nsDependentString(platformAppPath));
nsresult rv = localFile->InitWithPath(nsDependentString(platformAppPath));
if (NS_FAILED(rv))
return rv;
*aFile = localFile;
NS_IF_ADDREF(*aFile);