mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 245544 - nsBaseFilePicker::AppendFilters does not check for failure of getService, r+sr=neil
This commit is contained in:
parent
5af2706945
commit
c0cb560547
@ -124,7 +124,9 @@ NS_IMETHODIMP
|
||||
nsBaseFilePicker::AppendFilters(PRInt32 aFilterMask)
|
||||
{
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIStringBundleService> stringService = do_GetService(NS_STRINGBUNDLE_CONTRACTID);
|
||||
nsCOMPtr<nsIStringBundleService> stringService = do_GetService(NS_STRINGBUNDLE_CONTRACTID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCOMPtr<nsIStringBundle> stringBundle;
|
||||
|
||||
rv = stringService->CreateBundle(FILEPICKER_PROPERTIES, getter_AddRefs(stringBundle));
|
||||
|
Loading…
Reference in New Issue
Block a user