Changeset 1116 for trunk/dll/seeall.c


Ignore:
Timestamp:
Aug 24, 2008, 8:28:25 PM (17 years ago)
Author:
Gregg Young
Message:

Modify COPY/Move checks to account for large file support. (Ticket 256)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r1084 r1116  
    715715
    716716                FSALLOCATE fsa;
    717                 ULONG clFreeBytes;
     717                ULONGLONG ullFreeBytes;
    718718                CHAR *ptr;
    719719                INT cntr;
     
    724724                if (!DosQueryFSInfo(toupper(*newname) - '@',
    725725                                    FSIL_ALLOC, &fsa, sizeof(fsa))) {
    726                   // Assume <2GB since file did not fit
    727                   clFreeBytes = fsa.cUnitAvail * fsa.cSectorUnit *
     726                  // Assume large file support
     727                  ullFreeBytes = (ULONGLONG) fsa.cUnitAvail * fsa.cSectorUnit *
    728728                                fsa.cbSector;
    729                   if (clFreeBytes) {
     729                  if (ullFreeBytes) {
    730730                    // Find item that will fit in available space
    731731                    for (cntr = x + 1; list[cntr]; cntr++) {
     
    736736                          !(fs4.attrFile & FILE_DIRECTORY) &&
    737737                          // fixme to use CBLIST_TO_EASIZE?
    738                           fs4.cbFile + fs4.cbList <= clFreeBytes) {
     738                          fs4.cbFile + fs4.cbList <= ullFreeBytes) {
    739739                        // Swap with failing item
    740740                        ptr = list[x];
Note: See TracChangeset for help on using the changeset viewer.