Return a more useful error when being inited with an empty string. Bug 187605,
patch by bugzilla@chucker.rasdi.net (So"ren 'Chucker' Kuklau), r=dougt, sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@136227 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -65,7 +65,7 @@ nsLocalFile::InitWithFile(nsILocalFile *aFile)
|
||||
nsCAutoString path;
|
||||
aFile->GetNativePath(path);
|
||||
if (path.IsEmpty())
|
||||
return NS_ERROR_FAILURE;
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
return InitWithNativePath(path);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user