зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
966c3f77c1
Коммит
a19dc7acf1
|
@ -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;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
|
|
Загрузка…
Ссылка в новой задаче