mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
Mac specific fix. Checking in rjc's fix to load libraries if file spec was an alias to a library rather than the actual library file spec. Needed so XPCOM will work on Mac.
This commit is contained in:
parent
92dd9d0245
commit
4dfab1a73d
@ -596,6 +596,8 @@ PR_LoadLibrary(const char *name)
|
||||
FSSpec fileSpec;
|
||||
PRUint32 index;
|
||||
|
||||
Boolean tempUnusedBool; // rjc
|
||||
|
||||
/* Copy the name: we'll change it */
|
||||
cMacPath = strdup(name);
|
||||
if (cMacPath == NULL)
|
||||
@ -646,6 +648,11 @@ PR_LoadLibrary(const char *name)
|
||||
goto unlock;
|
||||
fileSpec.parID = pb.dirInfo.ioDrDirID;
|
||||
|
||||
// resolve an alias if this was one (rjc)
|
||||
err = ResolveAliasFile(&fileSpec, true, &tempUnusedBool, &tempUnusedBool);
|
||||
if (err != noErr)
|
||||
goto unlock;
|
||||
|
||||
/* Finally, try to load the library */
|
||||
err = GetDiskFragment(&fileSpec, 0, kCFragGoesToEOF, fileSpec.name,
|
||||
kLoadCFrag, &connectionID, &main, errName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user