else if (spec.IsEmpty()) rv = baseURI->GetSpec(result); else rv = baseURI->Resolve(spec, result);
NS_MakeAbsoluteURI(char        **result,                   const char   *spec,                    nsIURI       *baseURI,                    nsIIOService *unused = nsnull){    nsresult rv;    nsCAutoString resultBuf;    rv = NS_MakeAbsoluteURI(resultBuf, nsDependentCString(spec), baseURI);    if (NS_SUCCEEDED(rv)) {        *result = ToNewCString(resultBuf);        if (!*result)            rv = NS_ERROR_OUT_OF_MEMORY;    }    return rv;}