Changeset 1444 for trunk/dll/update.c


Ignore:
Timestamp:
Jul 23, 2009, 1:24:23 AM (16 years ago)
Author:
Gregg Young
Message:

Rework of drivebar to rescan all drives and refresh media buttons and menu items grey out inappropriate menu items. Streamline Tree scan code and use semaphores to serialize access. Add NOEASUPPORT and LOCALHD driveflag; .LONGNAME usage fixes; (Tickets 377-386)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/update.c

    r1439 r1444  
    2020  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
    2121  14 Mar 09 GKY Prevent execution of UM_SHOWME while drive scan is occuring
     22  22 Jul 09 GKY Code changes to use semaphores to serialize drive scanning
    2223
    2324***********************************************************************/
     
    191192            PostMsg(hwndCnr, UM_RESCAN, MPVOID, MPVOID);
    192193            if (pci->attrFile & FILE_DIRECTORY) {
    193               if (fInitialDriveScan)
    194                 Stubby(hwndCnr, pci);
    195               else {
    196                 while (StubbyScanCount != 0)
    197                   DosSleep(50);
    198               //Stubby(hwndCnr, pci);
    199               }
     194              Stubby(hwndCnr, pci);
    200195            }
    201196          }
     
    291286              dcd->ullTotalBytes += ullTotalBytes;
    292287            }
    293             if (fInitialDriveScan)
    294               Stubby(hwndCnr, pci);
    295             else {
    296               while (StubbyScanCount != 0)
    297                 DosSleep(50);
    298             //Stubby(hwndCnr, pci);
    299             }
     288            Stubby(hwndCnr, pci);
    300289          }
    301290        }
     
    465454                repos = TRUE;
    466455                if (pci->attrFile & FILE_DIRECTORY) {
    467                   if (fInitialDriveScan)
    468                     Stubby(hwndCnr, pci);
    469                   else {
    470                     while (StubbyScanCount != 0)
    471                       DosSleep(50);
    472                 //Stubby(hwndCnr, pci);
    473                   }
     456                  Stubby(hwndCnr, pci);
    474457                }
    475458              }
     
    570553                  }
    571554                  repos = TRUE;
    572                   if (fInitialDriveScan)
    573                     Stubby(hwndCnr, pci);
    574                   else {
    575                     while (StubbyScanCount != 0)
    576                       DosSleep(50);
    577                   //Stubby(hwndCnr, pci);
    578                   }
     555                  Stubby(hwndCnr, pci);
    579556                }
    580557                else
Note: See TracChangeset for help on using the changeset viewer.