if (rv != NS_OK)
if (NS_FAILED(rv))
int Init_nsUnknownContentTypeHandler_Factory( ) {	nsresult rv;	// create a generic factory for UnkHandler	nsCOMPtr<nsIGenericFactory> factory;	rv = NS_NewGenericFactory( getter_AddRefs(factory), info );	if (rv != NS_OK)		return rv;	// register this factory with the component manager.	rv = nsComponentManager::RegisterFactory( kCID, "nsUnknownContentTypeHandler", NS_IHELPERAPPLAUNCHERDLG_CONTRACTID, factory, PR_TRUE);	return NS_OK;	}