Fixed += operator, which would only work if you had a file or folder called "G'day" in the input directory.
git-svn-id: svn://10.0.0.236/trunk@20479 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -671,9 +671,11 @@ void nsNativeFileSpec::operator += (const char* inRelativePath)
|
||||
mError = FSpGetDirectoryID(&mSpec, &dirID, &isDirectory);
|
||||
if (mError == noErr && isDirectory)
|
||||
{
|
||||
mError = FSMakeFSSpec(mSpec.vRefNum, dirID, "\pG'day", *this);
|
||||
if (mError == noErr)
|
||||
SetLeafName(inRelativePath);
|
||||
Str255 partialPath;
|
||||
MacFileHelpers::PLstrcpy(partialPath, inRelativePath);
|
||||
mError = FSMakeFSSpec(mSpec.vRefNum, dirID, partialPath, *this);
|
||||
//if (mError == noErr)
|
||||
// SetLeafName(inRelativePath);
|
||||
}
|
||||
} // nsNativeFileSpec::operator +=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user