Bug 245544 - nsBaseFilePicker::AppendFilters does not check for failure of getService, r+sr=neil

This commit is contained in:
timeless@mozdev.org 2009-03-29 12:51:41 -07:00
parent 5af2706945
commit c0cb560547

View File

@ -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));