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

This commit is contained in:
bsmedberg%covad.net 2005-01-23 23:08:00 +00:00
parent c8a269eb8f
commit 526803fe90

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);