Commit e1d8c9ba authored by Jack Jansen's avatar Jack Jansen

Fixed FSSpec->pathname code to add colon if the fsspec points to a disk.

parent 56c3c763
......@@ -139,6 +139,12 @@ PyMac_GetFullPath (FSSpec *fss, char *buf)
plen = fss_current.name[0];
memcpy(buf, &fss_current.name[1], plen);
buf[plen] = 0;
/* Special case for disk names */
if ( fss_current.parID <= 1 ) {
buf[plen++] = ':';
buf[plen] = 0;
return 0;
}
while (fss_current.parID > 1) {
/* Get parent folder name */
if (err = get_folder_parent(&fss_current, &fss_parent))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment