diff --git a/base/src/nsFileSpec.cpp b/base/src/nsFileSpec.cpp index 9b0d62fb1742..a827788f9258 100644 --- a/base/src/nsFileSpec.cpp +++ b/base/src/nsFileSpec.cpp @@ -479,7 +479,7 @@ void nsFilePath::operator = (const nsFilePath& inOther) { nsFileSpecHelpers::StringAssign(mPath, inOther.mPath); #ifdef XP_MAC - mNativeFileSpec = inOther.GetNativeSpec(); + mFileSpec = inOther.GetFileSpec(); #endif } @@ -727,10 +727,14 @@ void nsPersistentFileDescriptor::operator = (const nsFileSpec& inSpec) if (inSpec.Error()) return; AliasHandle aliasH; +/* + This is killing the tree. mcmullen will need to look at this. + OSErr err = NewAlias(nil, inSpec.operator const FSSpec* const (), &aliasH); if (err != noErr) return; - +*/ +return -50; PRUint32 bytes = GetHandleSize((Handle) aliasH); HLock((Handle) aliasH); char* buf = PL_Base64Encode((const char*)*aliasH, bytes, nsnull); diff --git a/xpcom/io/nsFileSpec.cpp b/xpcom/io/nsFileSpec.cpp index 9b0d62fb1742..a827788f9258 100644 --- a/xpcom/io/nsFileSpec.cpp +++ b/xpcom/io/nsFileSpec.cpp @@ -479,7 +479,7 @@ void nsFilePath::operator = (const nsFilePath& inOther) { nsFileSpecHelpers::StringAssign(mPath, inOther.mPath); #ifdef XP_MAC - mNativeFileSpec = inOther.GetNativeSpec(); + mFileSpec = inOther.GetFileSpec(); #endif } @@ -727,10 +727,14 @@ void nsPersistentFileDescriptor::operator = (const nsFileSpec& inSpec) if (inSpec.Error()) return; AliasHandle aliasH; +/* + This is killing the tree. mcmullen will need to look at this. + OSErr err = NewAlias(nil, inSpec.operator const FSSpec* const (), &aliasH); if (err != noErr) return; - +*/ +return -50; PRUint32 bytes = GetHandleSize((Handle) aliasH); HLock((Handle) aliasH); char* buf = PL_Base64Encode((const char*)*aliasH, bytes, nsnull);