зеркало из https://github.com/mozilla/pjs.git
More AppleDouble work - NOT PART OF THE BUILD
This commit is contained in:
Родитель
7298089b13
Коммит
418f559d8d
|
@ -112,21 +112,16 @@ MacGetFileType(nsFileSpec *fs,
|
|||
{
|
||||
NS_WITH_SERVICE(nsIMIMEService, mimeFinder, kMimeServiceCID, &rv);
|
||||
if (NS_SUCCEEDED(rv) && mimeFinder)
|
||||
{
|
||||
nsIMIMEInfo *mimeInfo = nsnull;
|
||||
rv = mimeFinder->GetTypeFromURI(tURI, &mimeInfo);
|
||||
if (NS_SUCCEEDED(rv) && mimeInfo)
|
||||
{
|
||||
char *mimeType = nsnull;
|
||||
|
||||
if ( (NS_SUCCEEDED(mimeInfo->GetMIMEType(&mimeType))) && mimeType)
|
||||
rv = mimeFinder->GetTypeFromURI(tURI, &mimeType);
|
||||
if (NS_SUCCEEDED(rv) && mimeType)
|
||||
{
|
||||
*fileType = mimeType;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If we hit here, return something...default to this...
|
||||
*fileType = nsCRT::strdup(APPLICATION_OCTET_STREAM);
|
||||
|
|
Загрузка…
Ссылка в новой задаче