mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
From bug 276588 - additional BEOS-specific fixup. patch by Simon Taylor <simontaylor2@gawab.com>, r=me
This commit is contained in:
parent
c8a269eb8f
commit
526803fe90
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user