Changeset 1551 for trunk/dll/filldir.c


Ignore:
Timestamp:
Nov 15, 2010, 4:33:25 AM (15 years ago)
Author:
Gregg Young
Message:

This code adds the semaphores to prevent a rescan from starting before the current one is finished; it fixes the double directory listing in the tree container and streamlines scanning. It update mapsym.pl to the latest version. Some code cleanup is included

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1550 r1551  
    261261  DbgMsg(pszSrcFile, __LINE__, "ProcessDirCount %i FixedVolume %i",
    262262         ProcessDirCount, FixedVolume);
    263   if (fInitialDriveScan && ProcessDirCount >= FixedVolume) {
    264     fInitialDriveScan = FALSE;
    265     DosPostEventSem(hevInitialCnrScanComplete);
    266     DosCloseEventSem(hevInitialCnrScanComplete);
    267     if (fSwitchTree && hwndTree && fSaveState && pszFocusDir) {
     263  if (ProcessDirCount >= FixedVolume) {
     264    DosPostEventSem(hevTreeCnrScanComplete);
     265    if (fInitialDriveScan && fSwitchTree && hwndTree && fSaveState && pszFocusDir) {
    268266       // Keep drive tree in sync with directory container
    269267      if (hwndMain) {
     
    277275      }
    278276    }
     277    fInitialDriveScan = FALSE;
    279278  }
    280279# ifdef FORTIFY
     
    17091708  fDummy = FALSE;
    17101709  DosPostEventSem(CompactSem);
    1711   DosReleaseMutexSem(hmtFillingTreeCnr);
    17121710
    17131711  if (!fDontSuggestAgain) {
Note: See TracChangeset for help on using the changeset viewer.