this time, a correct fix...

git-svn-id: svn://10.0.0.236/trunk@154948 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de 2004-04-15 21:58:51 +00:00
parent 4b5a2ece3d
commit 22d0556890

View File

@ -1299,9 +1299,8 @@ nsresult nsExternalAppHandler::SetUpTempFile(nsIChannel * aChannel)
#if defined(XP_MAC) || defined (XP_MACOSX)
nsCAutoString contentType;
mMimeInfo->GetMIMEType(contentType);
if (contentType &&
(contentType.EqualsIgnoreCase(APPLICATION_APPLEFILE) == 0) ||
(contentType.EqualsIgnoreCase(MULTIPART_APPLEDOUBLE) == 0))
if (contentType.EqualsIgnoreCase(APPLICATION_APPLEFILE) ||
contentType.EqualsIgnoreCase(MULTIPART_APPLEDOUBLE))
{
nsCOMPtr<nsIAppleFileDecoder> appleFileDecoder = do_CreateInstance(NS_IAPPLEFILEDECODER_CONTRACTID, &rv);
if (NS_SUCCEEDED(rv) && appleFileDecoder)