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.
git-svn-id: svn://10.0.0.236/trunk@21052 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ea5ca906ce
commit
d4b4c375df
@ -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