diff --git a/mozilla/xpcom/io/nsLocalFileCommon.cpp b/mozilla/xpcom/io/nsLocalFileCommon.cpp index 05130b62738..47e30ac4a73 100644 --- a/mozilla/xpcom/io/nsLocalFileCommon.cpp +++ b/mozilla/xpcom/io/nsLocalFileCommon.cpp @@ -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