Skip to content
Snippets Groups Projects
Commit a19dc7ac authored by sdagley%netscape.com's avatar sdagley%netscape.com
Browse files

Landing fix for davidm. Returning nsnull was being interpreted as no error so...

Landing fix for davidm. Returning nsnull was being interpreted as no error so changing to a return code that indicates an error.
parent 966c3f77
No related merge requests found
......@@ -503,7 +503,7 @@ NS_IMETHODIMP nsFileLocator::GetFileLocation(
return NS_OK;
}
*(nsSpecialFileSpec*)&spec = (nsSpecialFileSpec::Type)aType;
return NS_SUCCEEDED(spec.Error()) ? NS_NewFileSpecWithSpec(spec, outSpec) : nsnull;
return NS_SUCCEEDED(spec.Error()) ? NS_NewFileSpecWithSpec(spec, outSpec) : NS_ERROR_ILLEGAL_VALUE;
}
//----------------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment