Changeset 739 for trunk/dll/dirsize.c
- Timestamp:
- Jul 24, 2007, 6:06:59 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dirsize.c
r738 r739 147 147 else 148 148 DosError(FERR_DISABLEHARDERR); 149 // fixme to not double free when pointers match150 pci->pszLongname = pci->pszFileName;151 149 pci->rc.hptrIcon = hptrDir; 152 150 *pci->szDispAttr = 0; … … 171 169 p = pszFileName; 172 170 else 173 p++; 174 sp = (strchr(pszFileName, ' ') != NULL) ? "\"" : NullStr; 171 p++; // After last backslash 172 // Handle quoted names? 173 sp = strchr(pszFileName, ' ') != NULL ? "\"" : NullStr; 174 pci->pszFileName = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__); // fixme to optimize alloc 175 175 pp = pci->pszFileName; 176 176 if (*sp) { 177 *pp = *sp; 177 *pp = *sp; // Need quotes 178 178 pp++; 179 179 *pp = 0; … … 183 183 strcat(pp, sp); 184 184 } 185 pci->pszLongname = pci->pszFileName; 185 186 pci->rc.pszIcon = pci->pszLongname; 186 187 pci->rc.flRecordAttr |= CRA_RECORDREADONLY; … … 189 190 else if (fForceLower) 190 191 strlwr(pci->pszFileName); 191 // fixme to work - code is hiding file name from container but... 23 Jul 07 SHL 192 pci->pszFileName = pci->pszFileName + strlen(pci->pszFileName); 192 pci->pszDisplayName = pci->pszFileName + strlen(pci->pszFileName); 193 193 memset(&ri, 0, sizeof(RECORDINSERT)); 194 194 ri.cb = sizeof(RECORDINSERT);
Note:
See TracChangeset
for help on using the changeset viewer.