Changeset 1650


Ignore:
Timestamp:
Nov 19, 2011, 10:21:47 PM (14 years ago)
Author:
Gregg Young
Message:

It helps if you actually save the file after you clean it up. See previous commit

Location:
trunk/dll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/flesh.c

    r1649 r1650  
    192192                               MPFROMP(pciParent),
    193193                               MPFROM2SHORT(CMA_FIRSTCHILD, CMA_ITEMORDER));
    194   if (pciL && (INT) pciL != -1 &&* pciL->pszFileName) //{
    195     UnFlesh( hwndCnr, pciParent);
    196     //if (pciL && (INT) pciL != -1)
    197     //  RemoveCnrItems(hwndCnr, pciL, 1, CMA_FREE);
    198     dcd = INSTDATA(hwndCnr);
    199     if (dcd && dcd->size != sizeof(DIRCNRDATA))
    200       dcd = NULL;
    201     if (driveflags[toupper(*pciParent->pszFileName) - 'A'] &
    202         DRIVE_INCLUDEFILES)
    203       includefiles = TRUE;
    204 #if 0
    205     if (fInitialDriveScan) {
    206       PROCESSDIR *ProcessDir;
    207 
    208       ProcessDir = xmallocz(sizeof(PROCESSDIR), pszSrcFile, __LINE__);
    209       if (!ProcessDir)
    210         return FALSE;
    211       ProcessDir->hwndCnr = hwndCnr;
    212       ProcessDir->pciParent = pciParent;
    213       ProcessDir->szDirBase = pciParent->pszFileName;
    214       ProcessDir->filestoo = includefiles;
    215       ProcessDir->recurse = TRUE;
    216       ProcessDir->partial = TRUE;
    217       ProcessDir->stopflag = NULL;
    218       ProcessDir->dcd = dcd;
    219       ProcessDir->pulTotalFiles = NULL;
    220       ProcessDir->pullTotalBytes = NULL;
    221 
    222       if (xbeginthread(ProcessDirectoryThread,
    223                        65536,
    224                        ProcessDir,
    225                        pszSrcFile,
    226                        __LINE__) == -1)
    227       {
    228         xfree(ProcessDir, pszSrcFile, __LINE__);
    229       }
    230     }
    231     else {
    232 # endif
    233       ProcessDirectory(hwndCnr,
    234                        pciParent,
    235                        pciParent->pszFileName,
    236                        includefiles,    // filestoo
    237                        TRUE,            // recurse
    238                        TRUE,            // partial
    239                        NULL,            // stop flag
    240                        dcd,
    241                        NULL,            // total files
    242                        NULL);           // total bytes
    243 #if 0
    244     }
    245 #endif
    246     driveflags[*pciParent->pszFileName - 'A'] |= DRIVE_RSCANNED;
    247   //}
     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;
    248213  return TRUE;
    249214}
  • trunk/dll/treecnr.c

    r1572 r1650  
    31263126    if (apphead) {
    31273127      APPNOTIFY *info, *next;
     3128
    31283129      info = apphead;
    31293130      while (info) {
     
    31403141  } // switch
    31413142  if (dcd && dcd->oldproc){
    3142       return dcd->oldproc(hwnd, msg, mp1, mp2);
     3143    return dcd->oldproc(hwnd, msg, mp1, mp2);
    31433144  }
    31443145  else
    3145       return PFNWPCnr(hwnd, msg, mp1, mp2);
     3146    return PFNWPCnr(hwnd, msg, mp1, mp2);
    31463147}
    31473148
Note: See TracChangeset for help on using the changeset viewer.