зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1082777: Support running of xpcshell on OSX with relative path invocation on Terminal. r=smichaud
This commit is contained in:
Родитель
271c651290
Коммит
ee2a1a8d27
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче