Changeset 1543 for trunk/dll


Ignore:
Timestamp:
Sep 26, 2010, 5:22:47 PM (15 years ago)
Author:
Gregg Young
Message:

Fix percent used/avalable display in drive info dialog (Ticket 367); Fix recursive scan in stubbyscanthread.

Location:
trunk/dll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/filldir.c

    r1522 r1543  
    236236            ULONG flags = driveflags[toupper(*StubbyScan->pci->pszFileName) - 'A'];
    237237
    238             if (((fRScanLocal && ~flags & DRIVE_REMOTE && ~flags & DRIVE_VIRTUAL) ||
     238            if ((fRScanLocal && ~flags & DRIVE_REMOTE && ~flags & DRIVE_VIRTUAL) ||
    239239                 (fRScanRemote && flags & DRIVE_REMOTE) ||
    240                  (fRScanVirtual && flags & DRIVE_VIRTUAL)) && fInitialDriveScan) {
    241               if (!(flags & ((fRScanNoWrite ? 0 : DRIVE_NOTWRITEABLE) |
     240                 (fRScanVirtual && flags & DRIVE_VIRTUAL)) {
     241              if (!(flags & ((fRScanNoWrite ? 0 : DRIVE_NOTWRITEABLE) ||
    242242                             (fRScanSlow ? 0 : DRIVE_SLOW)))) {
    243243                UnFlesh(StubbyScan->hwndCnr, StubbyScan->pci);
  • trunk/dll/info.c

    r1533 r1543  
    208208            }
    209209            volser;
    210             USHORT percentfree, percentused;
     210            ULONG percentfree, percentused;
    211211
    212212            memset(&volser, 0, sizeof(volser));
     
    252252
    253253              percentfree = (fsa.cUnitAvail && fsa.cUnit) ?
    254                 ((USHORT) fsa.cUnitAvail * 100) / (USHORT) fsa.cUnit : 0;
     254                ((ULONG) fsa.cUnitAvail * 100) / (ULONG) fsa.cUnit : 0;
    255255              if (!percentfree && fsa.cUnitAvail)
    256256                percentfree = 1;
Note: See TracChangeset for help on using the changeset viewer.