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
Родитель 271c651290
Коммит ee2a1a8d27
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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