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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user