From bug 276588 - additional BEOS-specific fixup. patch by Simon Taylor <simontaylor2@gawab.com>, r=me

git-svn-id: svn://10.0.0.236/trunk@168214 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bsmedberg%covad.net
2005-01-23 23:08:00 +00:00
parent 202f2efa47
commit 2ce1f193d9

View File

@@ -61,6 +61,7 @@
#include <shlobj.h>
#elif defined(XP_BEOS)
#include <Path.h>
#include <Directory.h>
#elif defined(XP_UNIX)
#include <unistd.h>
#endif
@@ -303,11 +304,11 @@ nsCommandLine::ResolveFile(const nsAString& aArgument, nsIFile* *aResult)
BDirectory bwd(wd.get());
BPath resolved(bwd, carg.get(), true);
BPath resolved(&bwd, carg.get(), true);
if (resolved.InitCheck() != B_OK)
return NS_ERROR_FAILURE;
rv = lf->InitWithNativePath(BPath.Path());
rv = lf->InitWithNativePath(nsDependentCString(resolved.Path()));
if (NS_FAILED(rv)) return rv;
NS_ADDREF(*aResult = lf);