Fix for XPInstall horkage on the Mac.
b = 26327 r = dougt a = leaf git-svn-id: svn://10.0.0.236/trunk@59660 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -662,12 +662,16 @@ nsLocalFile::OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc **_retval)
|
||||
|
||||
NS_ENSURE_ARG(_retval);
|
||||
|
||||
ResolveAndStat(PR_TRUE);
|
||||
|
||||
FSSpec spec;
|
||||
OSErr err = noErr;
|
||||
|
||||
nsresult rv = ResolveAndStat(PR_TRUE);
|
||||
if ((rv == NS_ERROR_FILE_NOT_FOUND) && (flags & PR_CREATE_FILE))
|
||||
spec = mResolvedSpec;
|
||||
else
|
||||
spec = mTargetSpec;
|
||||
|
||||
// Resolve the alias to the original file.
|
||||
FSSpec spec = mTargetSpec;
|
||||
Boolean targetIsFolder;
|
||||
Boolean wasAliased;
|
||||
err = ::ResolveAliasFile(&spec, TRUE, &targetIsFolder, &wasAliased);
|
||||
|
||||
Reference in New Issue
Block a user