Bug #44082 --> fail if we couldn't find mimeTypes.rdf during the data source init phase.

patch from jst
r=mscott
This commit is contained in:
mscott%netscape.com 2000-07-07 21:44:11 +00:00
parent 9e23a37623
commit 2f46a371e9

View File

@ -81,6 +81,8 @@ nsresult nsExternalHelperAppService::Init()
nsCOMPtr<nsIFileSpec> mimeTypesFile;
rv = locator->GetFileLocation(nsSpecialFileSpec::App_UsersMimeTypes50,
getter_AddRefs(mimeTypesFile));
NS_ENSURE_SUCCESS(rv, rv);
nsXPIDLCString url;
rv = mimeTypesFile->GetURLString(getter_Copies(url));
NS_ENSURE_SUCCESS(rv, rv);