Bug 1082777: Support running of xpcshell on OSX with relative path invocation on Terminal. r=smichaud

This commit is contained in:
Stephen Pohl 2014-10-21 09:43:02 -04:00
parent 271c651290
commit ee2a1a8d27

View File

@ -2339,7 +2339,7 @@ NS_IMETHODIMP
nsLocalFile::InitWithCFURL(CFURLRef aCFURL)
{
UInt8 path[PATH_MAX];
if (::CFURLGetFileSystemRepresentation(aCFURL, false, path, PATH_MAX)) {
if (::CFURLGetFileSystemRepresentation(aCFURL, true, path, PATH_MAX)) {
nsDependentCString nativePath((char*)path);
return InitWithNativePath(nativePath);
}