mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 641079 - GetMimeInfoForFileExt should return a boolean. r=blassey, a=approval-2.0
This commit is contained in:
parent
183347aaec
commit
e4328b6e45
@ -112,9 +112,9 @@ nsMIMEInfoAndroid::GetMimeInfoForFileExt(const nsACString& aFileExt,
|
||||
mozilla::AndroidBridge::Bridge()->
|
||||
GetMimeTypeFromExtensions(aFileExt, mimeType);
|
||||
|
||||
nsresult rv = GetMimeInfoForMimeType(mimeType, aMimeInfo);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
return (*aMimeInfo)->SetPrimaryExtension(aFileExt);
|
||||
PRBool found = GetMimeInfoForMimeType(mimeType, aMimeInfo);
|
||||
(*aMimeInfo)->SetPrimaryExtension(aFileExt);
|
||||
return found;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user