Landing fix for davidm. Returning nsnull was being interpreted as no error so changing to a return code that indicates an error.

This commit is contained in:
sdagley%netscape.com 1999-09-22 06:02:21 +00:00
Родитель 966c3f77c1
Коммит a19dc7acf1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}
//----------------------------------------------------------------------------------------