зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8747fc4ba9
Коммит
d595463f9b
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче