rv = mInner->GetSource(kNC_URL, basenameLiteral, PR_TRUE, getter_AddRefs(catSrc)); if (NS_FAILED(rv) || (rv == NS_RDF_NO_VALUE))	return(rv);
rv = mInner->GetSource(kNC_Name, catName, PR_TRUE, getter_AddRefs(catSrc)); if (NS_FAILED(rv))	return(rv);
InternetSearchDataSource::resolveSearchCategoryEngineURI(nsIRDFResource *engine, nsIRDFResource **trueEngine){	*trueEngine = nsnull;	if ((!categoryDataSource) || (!mInner))	return(NS_ERROR_UNEXPECTED);	nsresult	rv;	const char	*uriUni = nsnull;	if (NS_FAILED(rv = engine->GetValueConst(&uriUni)))	return(rv);	if (!uriUni)	return(NS_ERROR_NULL_POINTER);	nsAutoString		uri;	uri.AssignWithConversion(uriUni);	if (uri.Find(kURINC_SearchCategoryEngineBasenamePrefix) !=0)	return(NS_ERROR_UNEXPECTED);	nsCOMPtr<nsIRDFLiteral>	basenameLiteral;	if (NS_FAILED(rv = gRDFService->GetLiteral(uri.GetUnicode(),			getter_AddRefs(basenameLiteral))))	return(rv);	nsCOMPtr<nsIRDFResource>	catSrc;	rv = mInner->GetSource(kNC_URL, basenameLiteral, PR_TRUE, getter_AddRefs(catSrc));	if (NS_FAILED(rv) || (rv == NS_RDF_NO_VALUE))	return(rv);	if (!catSrc)		return(NS_ERROR_UNEXPECTED);	*trueEngine = catSrc;	NS_IF_ADDREF(*trueEngine);	return(NS_OK);}