Changeset 1446 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Jul 23, 2009, 3:33:18 AM (16 years ago)
Author:
Gregg Young
Message:

Fix problem with NOPRESCANDRIVES updating subdirectories with drive icon and full pathname. More streamlining of Tree container scan code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1444 r1446  
    19761976            if (!pciL)
    19771977              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);
    19801981              strcat(szBuf, " [");
    19811982              strcat(szBuf, fShowFSTypeInTree ? FileSystem : volser.volumelabel);
    19821983              strcat(szBuf, "]");
    1983               pci->pszDisplayName = xstrdup(szBuf, pszSrcFile, __LINE__);
     1984              pciP->pszDisplayName = xstrdup(szBuf, pszSrcFile, __LINE__);
     1985              pciP->rc.pszIcon = pciP->pszDisplayName;
    19841986            }
    1985             pciP->rc.pszIcon = pciP->pszDisplayName;
    19861987            WinSendMsg(hwnd,
    19871988                       CM_INVALIDATERECORD,
     
    27662767                if (driveflag & DRIVE_INVALID)
    27672768                  pci->rc.hptrIcon = hptrDunno;
    2768                 else {
     2769                else  if (strlen(pci->pszFileName) < 4) {
    27692770                  SelectDriveIcon(pci);
    27702771                }
    2771                 if (fShowFSTypeInTree || fShowDriveLabelInTree) {
     2772                if ((fShowFSTypeInTree || fShowDriveLabelInTree) &&
     2773                    strlen(pci->pszFileName) < 4) {
    27722774                  strcpy(szBuf, pci->pszFileName);
    27732775                  strcat(szBuf, " [");
     
    27752777                  strcat(szBuf, "]");
    27762778                  pci->pszDisplayName = xstrdup(szBuf, pszSrcFile, __LINE__);
     2779                  pci->rc.pszIcon = pci->pszDisplayName;
    27772780                }
    2778                 pci->rc.pszIcon = pci->pszDisplayName;
    27792781                WinSendMsg(hwnd,
    27802782                           CM_INVALIDATERECORD,
Note: See TracChangeset for help on using the changeset viewer.