Changeset 51 for trunk/dll/dirsize.c
- Timestamp:
- Feb 12, 2003, 9:22:14 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/dirsize.c
r36 r51 10 10 11 11 Revisions 16 Oct 02 SHL - Handle large partitions 12 12 Feb 03 SHL - Use CBLIST_TO_EASIZE 12 13 13 14 ***********************************************************************/ … … 57 58 58 59 static ULONG ProcessDir (HWND hwndCnr,CHAR *filename,PCNRITEM pciParent, 59 CHAR *stopflag,BOOL top) {60 60 CHAR *stopflag,BOOL top) 61 { 61 62 CHAR maskstr[CCHMAXPATH],*endpath; 62 63 register char *p,*sp,*pp; … … 107 108 } 108 109 if(!rc) 109 totalbytes = ffb->cbFile + (ffb->cbList > 4L) ? (ffb->cbList / 2) : 0L;110 totalbytes = ffb->cbFile + CBLIST_TO_EASIZE(ffb->cbList); 110 111 else 111 112 DosError(FERR_DISABLEHARDERR); … … 190 191 pffbFile->achName[1] != '.')) || 191 192 !(pffbFile->attrFile & FILE_DIRECTORY)) { 192 totalbytes += (pffbFile->cbFile + 193 ((pffbFile->cbList > 4L) ? 194 (pffbFile->cbList / 2) : 0L)); 193 totalbytes += pffbFile->cbFile + 194 CBLIST_TO_EASIZE(pffbFile->cbList); 195 195 if(!(pffbFile->attrFile & FILE_DIRECTORY)) 196 196 pciP->attrFile++;
Note:
See TracChangeset
for help on using the changeset viewer.