rv = net_GetFileFromURLSpec(spec, result); #ifdef DEBUG_bsmedberg if (NS_SUCCEEDED(rv)) { PRBool exists = PR_TRUE; (*result)->Exists(&exists); if (!exists) { printf("resource %s doesn't exist!\n", spec.get()); } } #endif
nsCOMPtr<nsILocalFile> localFile = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID, &rv); if (NS_FAILED(rv)) return rv;
nsResURL::GetFile(nsIFile **result){    nsresult rv;    NS_ENSURE_TRUE(gResHandler, NS_ERROR_NOT_AVAILABLE);    nsCAutoString spec;    rv = gResHandler->ResolveURI(this, spec);    if (NS_FAILED(rv)) return rv;    rv = net_GetFileFromURLSpec(spec, result);#ifdef DEBUG_bsmedberg    if (NS_SUCCEEDED(rv)) {        PRBool exists = PR_TRUE;        (*result)->Exists(&exists);        if (!exists) {            printf("resource %s doesn't exist!\n", spec.get());        }    }#endif    return rv;}