Changeset 1651


Ignore:
Timestamp:
Nov 19, 2011, 11:15:55 PM (14 years ago)
Author:
Gregg Young
Message:

Reverted part of the changes as they caused dbl entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/flesh.c

    r1650 r1651  
    192192                               MPFROMP(pciParent),
    193193                               MPFROM2SHORT(CMA_FIRSTCHILD, CMA_ITEMORDER));
    194   if (pciL && (INT) pciL != -1 && *pciL->pszFileName)
    195     return FALSE;
    196   dcd = INSTDATA(hwndCnr);
    197   if (dcd && dcd->size != sizeof(DIRCNRDATA))
    198     dcd = NULL;
    199   if (driveflags[toupper(*pciParent->pszFileName) - 'A'] &
    200       DRIVE_INCLUDEFILES)
    201     includefiles = TRUE;
    202     ProcessDirectory(hwndCnr,
    203                      pciParent,
    204                      pciParent->pszFileName,
    205                      includefiles,      // filestoo
    206                      TRUE,              // recurse
    207                      TRUE,              // partial
    208                      NULL,              // stop flag
    209                      dcd,
    210                      NULL,              // total files
    211                      NULL);             // total bytes
    212   driveflags[*pciParent->pszFileName - 'A'] |= DRIVE_RSCANNED;
     194  if (!pciL || !*pciL->pszFileName) {
     195    if (pciL && (INT) pciL != -1)
     196      RemoveCnrItems(hwndCnr, pciL, 1, CMA_FREE);
     197    dcd = INSTDATA(hwndCnr);
     198    if (dcd && dcd->size != sizeof(DIRCNRDATA))
     199      dcd = NULL;
     200    if (driveflags[toupper(*pciParent->pszFileName) - 'A'] &
     201        DRIVE_INCLUDEFILES)
     202      includefiles = TRUE;
     203      ProcessDirectory(hwndCnr,
     204                       pciParent,
     205                       pciParent->pszFileName,
     206                       includefiles,    // filestoo
     207                       TRUE,            // recurse
     208                       TRUE,            // partial
     209                       NULL,            // stop flag
     210                       dcd,
     211                       NULL,            // total files
     212                       NULL);           // total bytes
     213    //}
     214  }
     215    driveflags[*pciParent->pszFileName - 'A'] |= DRIVE_RSCANNED;
    213216  return TRUE;
    214217}
Note: See TracChangeset for help on using the changeset viewer.