Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/seeall.c
r1084 r1116 715 715 716 716 FSALLOCATE fsa; 717 ULONG clFreeBytes;717 ULONGLONG ullFreeBytes; 718 718 CHAR *ptr; 719 719 INT cntr; … … 724 724 if (!DosQueryFSInfo(toupper(*newname) - '@', 725 725 FSIL_ALLOC, &fsa, sizeof(fsa))) { 726 // Assume <2GB since file did not fit727 clFreeBytes =fsa.cUnitAvail * fsa.cSectorUnit *726 // Assume large file support 727 ullFreeBytes = (ULONGLONG) fsa.cUnitAvail * fsa.cSectorUnit * 728 728 fsa.cbSector; 729 if ( clFreeBytes) {729 if (ullFreeBytes) { 730 730 // Find item that will fit in available space 731 731 for (cntr = x + 1; list[cntr]; cntr++) { … … 736 736 !(fs4.attrFile & FILE_DIRECTORY) && 737 737 // fixme to use CBLIST_TO_EASIZE? 738 fs4.cbFile + fs4.cbList <= clFreeBytes) {738 fs4.cbFile + fs4.cbList <= ullFreeBytes) { 739 739 // Swap with failing item 740 740 ptr = list[x]; -
trunk/dll/worker.c
r1101 r1116 786 786 787 787 FSALLOCATE fsa; 788 ULONG clFreeBytes;788 ULONGLONG ullFreeBytes; 789 789 CHAR *ptr; 790 790 INT cntr; … … 795 795 FSIL_ALLOC, 796 796 &fsa, sizeof(FSALLOCATE))) { 797 // Assume <2GB since file did not fit798 clFreeBytes =fsa.cUnitAvail * fsa.cSectorUnit *797 // Assume large file support 798 ullFreeBytes = (ULONGLONG) fsa.cUnitAvail * fsa.cSectorUnit * 799 799 fsa.cbSector; 800 if ( clFreeBytes) {800 if (ullFreeBytes) { 801 801 // Find item that will fit in available space 802 802 for (cntr = x + 1; wk->li->list[cntr]; cntr++) { … … 808 808 !(fs4.attrFile & FILE_DIRECTORY) && 809 809 // fixme to use CBLIST_TO_EASIZE? 810 fs4.cbFile + fs4.cbList <= clFreeBytes) {810 fs4.cbFile + fs4.cbList <= ullFreeBytes) { 811 811 // Swap with failing item 812 812 ptr = wk->li->list[x];
Note:
See TracChangeset
for help on using the changeset viewer.
