зеркало из https://github.com/mozilla/gecko-dev.git
Backing out bug 550463 from NSPR landing it requires 10.6
This commit is contained in:
Родитель
ff6a7f1fda
Коммит
00e4ee7f7b
|
@ -614,16 +614,16 @@ pr_LoadCFBundle(const char *name, PRLibrary *lm)
|
|||
{
|
||||
CFURLRef bundleURL;
|
||||
CFBundleRef bundle = NULL;
|
||||
char *resolvedPath;
|
||||
char pathBuf[PATH_MAX];
|
||||
const char *resolvedPath;
|
||||
CFStringRef pathRef;
|
||||
|
||||
/* Takes care of relative paths and symlinks */
|
||||
resolvedPath = realpath(name, NULL);
|
||||
resolvedPath = realpath(name, pathBuf);
|
||||
if (!resolvedPath)
|
||||
return PR_FAILURE;
|
||||
|
||||
pathRef = CFStringCreateWithCString(NULL, resolvedPath, kCFStringEncodingUTF8);
|
||||
free(resolvedPath);
|
||||
pathRef = CFStringCreateWithCString(NULL, pathBuf, kCFStringEncodingUTF8);
|
||||
if (pathRef) {
|
||||
bundleURL = CFURLCreateWithFileSystemPath(NULL, pathRef,
|
||||
kCFURLPOSIXPathStyle, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче