Changeset 1326 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Dec 9, 2008, 3:18:36 AM (17 years ago)
Author:
Gregg Young
Message:

Changes to avoid duplicate directory names on scan using StubbyScanThread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1320 r1326  
    802802      Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
    803803    else {
    804       PULONG pulPostCt;
     804      //PULONG pulPostCt;
    805805
    806806      RemoveCnrItems(dcd->hwndCnr, NULL, 0, CMA_FREE | CMA_INVALIDATE | CMA_ERASE);
     
    810810                 CM_SCROLLWINDOW,
    811811                 MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(-1));
    812       if (!fInitialDriveScan) {
    813         DosWaitEventSem(DriveScanStart, 20000);
    814         pulPostCt = xmallocz(sizeof(ULONG), pszSrcFile, __LINE__);
     812      //if (!fInitialDriveScan) {
     813        //DosWaitEventSem(DriveScanStart, 20000);
     814         while (StubbyScanCount != 0)
     815            DosSleep(50);
     816        /*pulPostCt = xmallocz(sizeof(ULONG), pszSrcFile, __LINE__);
    815817        if (pulPostCt) {
    816818          DosResetEventSem(DriveScanStart, pulPostCt);
    817819          free(pulPostCt);
    818         }
    819       }
    820       else
    821         fInitialDriveScan = FALSE;
     820        } */
     821      //}
     822      //else
     823      //  fInitialDriveScan = FALSE;
    822824      FillTreeCnr(dcd->hwndCnr, dcd->hwndParent);
    823825      if (fOkayMinimize) {
Note: See TracChangeset for help on using the changeset viewer.