Changeset 1434 for trunk/dll/filldir.c


Ignore:
Timestamp:
Jun 23, 2009, 12:52:05 AM (16 years ago)
Author:
Gregg Young
Message:

Update show label or FS in tree to initialize as driveonly and fixed typo which caused rescan to fail after the value was changed. Renamed some variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1430 r1434  
    877877  else
    878878    p = pci->pszFileName;
    879   if (szFSType && (fShowSysType || fShowLabel)) {
     879  if (szFSType && (fShowFSTypeInTree || fShowDriveLabelInTree)) {
    880880    strcpy(szBuf, p);
    881881    strcat(szBuf, " [");
     
    14571457            }
    14581458          }
    1459           if (strcmp(volser.volumelabel, "") != 0 && FSInfo && fShowLabel)
     1459          if (strcmp(volser.volumelabel, "") != 0 && FSInfo && fShowDriveLabelInTree)
    14601460            strcpy(szFSType, volser.volumelabel);
    14611461          pci->rc.flRecordAttr |= CRA_RECORDREADONLY;
     
    14871487              sprintf(suggest + strlen(suggest), "%c" , toupper(*szDrive));
    14881488              pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1489               if (fShowSysType || fShowLabel) {
     1489              if (fShowFSTypeInTree || fShowDriveLabelInTree) {
    14901490                strcat(szDrive, " [");
    14911491                strcat(szDrive, szFSType);
     
    15051505            // Removable volume
    15061506            pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1507             if (fShowSysType || fShowLabel) {
     1507            if (fShowFSTypeInTree || fShowDriveLabelInTree) {
    15081508              strcat(szDrive, " [");
    15091509              strcat(szDrive, szFSType);
     
    15251525          pci->rc.hptrIcon = hptrDunno;
    15261526          pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1527           if (fShowSysType || fShowLabel) {
     1527          if (fShowFSTypeInTree || fShowDriveLabelInTree) {
    15281528            strcat(szDrive, " [");
    15291529            strcat(szDrive, szFSType);
     
    15461546        pci->rc.hptrIcon = hptrFloppy;
    15471547        pci->pszFileName = xstrdup(szDrive, pszSrcFile, __LINE__);
    1548         if (fShowSysType || fShowLabel)
     1548        if (fShowFSTypeInTree || fShowDriveLabelInTree)
    15491549          strcat(szDrive, "  [Floppy]");
    15501550        pci->pszDisplayName = xstrdup(szDrive, pszSrcFile, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.