Changeset 1326 for trunk/dll/update.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/update.c

    r1318 r1326  
    189189            dcd->ullTotalBytes += ullTotalBytes;
    190190            PostMsg(hwndCnr, UM_RESCAN, MPVOID, MPVOID);
    191             if (pci->attrFile & FILE_DIRECTORY)
    192               Stubby(hwndCnr, pci);
     191            if (pci->attrFile & FILE_DIRECTORY) {
     192              if (fInitialDriveScan)
     193                Stubby(hwndCnr, pci);
     194              else {
     195                while (StubbyScanCount != 0)
     196                  DosSleep(50);
     197                Stubby(hwndCnr, pci);
     198              }
     199            }
    193200          }
    194201        }
     
    282289            if (dcd->type == DIR_FRAME) {
    283290              dcd->ullTotalBytes += ullTotalBytes;
    284             }
    285             Stubby(hwndCnr, pci);
     291            }
     292            if (fInitialDriveScan)
     293              Stubby(hwndCnr, pci);
     294            else {
     295              while (StubbyScanCount != 0)
     296                DosSleep(50);
     297              Stubby(hwndCnr, pci);
     298            }
    286299          }
    287300        }
     
    450463                }
    451464                repos = TRUE;
    452                 if (pci->attrFile & FILE_DIRECTORY)
    453                   Stubby(hwndCnr, pci);
     465                if (pci->attrFile & FILE_DIRECTORY) {
     466                  if (fInitialDriveScan)
     467                    Stubby(hwndCnr, pci);
     468                  else {
     469                    while (StubbyScanCount != 0)
     470                      DosSleep(50);
     471                    Stubby(hwndCnr, pci);
     472                  }
     473                }
    454474              }
    455475              else
     
    548568                      dcd->ullTotalBytes += ullTotalBytes;
    549569                  }
    550                   repos = TRUE;
    551                   Stubby(hwndCnr, pci);
     570                  repos = TRUE;
     571                  if (fInitialDriveScan)
     572                    Stubby(hwndCnr, pci);
     573                  else {
     574                    while (StubbyScanCount != 0)
     575                      DosSleep(50);
     576                    Stubby(hwndCnr, pci);
     577                  }
    552578                }
    553579                else
Note: See TracChangeset for help on using the changeset viewer.