Changeset 1446 for trunk/dll/treecnr.c
- Timestamp:
- Jul 23, 2009, 3:33:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/treecnr.c
r1444 r1446 1976 1976 if (!pciL) 1977 1977 Flesh(hwnd, pciP); 1978 if (fShowFSTypeInTree || fShowDriveLabelInTree) { 1979 strcpy(szBuf, pci->pszFileName); 1978 if ((fShowFSTypeInTree || fShowDriveLabelInTree) && 1979 strlen(pciP->pszFileName) < 4) { 1980 strcpy(szBuf, pciP->pszFileName); 1980 1981 strcat(szBuf, " ["); 1981 1982 strcat(szBuf, fShowFSTypeInTree ? FileSystem : volser.volumelabel); 1982 1983 strcat(szBuf, "]"); 1983 pci->pszDisplayName = xstrdup(szBuf, pszSrcFile, __LINE__); 1984 pciP->pszDisplayName = xstrdup(szBuf, pszSrcFile, __LINE__); 1985 pciP->rc.pszIcon = pciP->pszDisplayName; 1984 1986 } 1985 pciP->rc.pszIcon = pciP->pszDisplayName;1986 1987 WinSendMsg(hwnd, 1987 1988 CM_INVALIDATERECORD, … … 2766 2767 if (driveflag & DRIVE_INVALID) 2767 2768 pci->rc.hptrIcon = hptrDunno; 2768 else {2769 else if (strlen(pci->pszFileName) < 4) { 2769 2770 SelectDriveIcon(pci); 2770 2771 } 2771 if (fShowFSTypeInTree || fShowDriveLabelInTree) { 2772 if ((fShowFSTypeInTree || fShowDriveLabelInTree) && 2773 strlen(pci->pszFileName) < 4) { 2772 2774 strcpy(szBuf, pci->pszFileName); 2773 2775 strcat(szBuf, " ["); … … 2775 2777 strcat(szBuf, "]"); 2776 2778 pci->pszDisplayName = xstrdup(szBuf, pszSrcFile, __LINE__); 2779 pci->rc.pszIcon = pci->pszDisplayName; 2777 2780 } 2778 pci->rc.pszIcon = pci->pszDisplayName;2779 2781 WinSendMsg(hwnd, 2780 2782 CM_INVALIDATERECORD,
Note:
See TracChangeset
for help on using the changeset viewer.