fix for 26691. PDT+. reviewed by byner. This basically removes a assert that

was upsetting user of viewer.
This commit is contained in:
dougt%netscape.com 2000-02-26 00:09:44 +00:00
parent 2bd13b4c29
commit d076e83c8f

View File

@ -63,10 +63,7 @@ inline nsIFileSpec* NS_LocateFileOrDirectory(PRUint32 selector)
nsIFileSpec* spec = nsnull;
NS_WITH_SERVICE(nsIFileLocator, locator, NS_FILELOCATOR_PROGID, &rv);
if (NS_SUCCEEDED(rv) && locator)
{
rv = locator->GetFileLocation(selector, &spec);
NS_ASSERTION(NS_SUCCEEDED(rv), "ERROR: File locator cannot locate file.");
}
locator->GetFileLocation(selector, &spec);
return spec;
}