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:
beard%netscape.com
1999-02-12 00:48:35 +00:00
parent 9b636c9328
commit c2c951e7f8
2 changed files with 10 additions and 6 deletions

View File

@@ -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 +=