return rv;
return _convertRes(rv);
NS_IMETHODIMP nsPref::SetFilePref(const char *pref_name, 				    const nsFileSpec* value, PRBool set_default)//----------------------------------------------------------------------------------------{    if (!value)        return NS_ERROR_NULL_POINTER;            nsresult rv = NS_OK;    if (!value->Exists())    {        // nsPersistentFileDescriptor requires an existing        // object. Make it first.        nsFileSpec tmp(*value);        tmp.CreateDir();    }    nsPersistentFileDescriptor descriptor(*value);    char* encodedString = nsnull;    nsOutputStringStream stream(encodedString);    stream << descriptor;    if (encodedString && *encodedString)    {		if (set_default)			rv = PREF_SetDefaultCharPref(pref_name, encodedString);		else			rv = PREF_SetCharPref(pref_name, encodedString);    }    delete [] encodedString; // Allocated by nsOutputStringStream    return rv;}