Changeset 85 for trunk/dll/update.c
- Timestamp:
- May 21, 2004, 5:12:18 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/update.c
r51 r85 10 10 11 11 Revisions 12 Feb 03 SHL - Standardize EA math 12 10 Jan 04 SHL - Add some intermin large drive error avoidance 12 13 13 14 ***********************************************************************/ … … 214 215 MPFROMP(pci), 215 216 MPFROMP(&ri)) && 216 totalbytes != (ULONG)-1L && 217 totalbytes) { 217 totalbytes != -1 && 218 totalbytes) 219 { 218 220 dcd->totalbytes += totalbytes; 221 if (dcd->totalbytes == -1) 222 dcd->totalbytes--; 219 223 PostMsg(hwndCnr, 220 224 UM_RESCAN, … … 253 257 254 258 RECORDINSERT ri; 255 ULONG totalbytes;256 259 257 260 *ffb.achName = 0; 258 totalbytes =FillInRecordFromFFB(hwndCnr,259 260 261 262 263 261 FillInRecordFromFFB(hwndCnr, 262 pci, 263 filename, 264 &ffb, 265 partial, 266 dcd); 264 267 if(strlen(pci->szFileName) < 4) { 265 268 *pci->szFileName = toupper(*pci->szFileName); … … 365 368 MPFROMP(pci), 366 369 MPFROMP(&ri)) && 367 totalbytes != (ULONG)-1L && 368 totalbytes) { 369 if(dcd->type == DIR_FRAME) 370 totalbytes != -1 && 371 totalbytes) 372 { 373 if (dcd->type == DIR_FRAME) { 370 374 dcd->totalbytes += totalbytes; 375 if (dcd->totalbytes == -1) 376 dcd->totalbytes--; // fixme for real someday 377 } 371 378 Stubby(hwndCnr,pci); 372 379 } … … 396 403 CRA_SELECTED)); 397 404 if(dcd->type == DIR_FRAME) 398 dcd->totalbytes -= (pci->cbFile + pci->easize);405 dcd->totalbytes -= pci->cbFile + pci->easize; 399 406 WinSendMsg(hwndCnr, 400 407 CM_REMOVERECORD, … … 598 605 MPFROMP(pci), 599 606 MPFROMP(&ri))) { 600 if(totalbytes != (ULONG)-1L && 601 totalbytes) { 607 if (totalbytes != -1 && 608 totalbytes) 609 { 602 610 dcd->totalbytes += totalbytes; 611 if (dcd->totalbytes == -1) 612 dcd->totalbytes--; // fixme for real someday 603 613 numremain++; 604 614 } … … 678 688 MPFROMP(pci), 679 689 MPFROMP(&ri))) { 680 if(totalbytes != (ULONG)-1L && totalbytes) { 690 if (totalbytes != -1 && 691 totalbytes) 692 { 681 693 numremain++; 682 if(dcd->type == DIR_FRAME) 694 if(dcd->type == DIR_FRAME) { 683 695 dcd->totalbytes += totalbytes; 696 if (dcd->totalbytes == -1) 697 dcd->totalbytes--; // fixme for real someday 698 } 684 699 } 685 700 repos = TRUE; … … 744 759 MPFROMP(pci), 745 760 MPFROMP(&ri))) { 746 if(totalbytes != (ULONG)-1L && totalbytes) { 761 if (totalbytes != -1 && 762 totalbytes) 763 { 747 764 numremain++; 748 if (dcd->type == DIR_FRAME)765 if (dcd->type == DIR_FRAME) { 749 766 dcd->totalbytes += totalbytes; 767 if (dcd->totalbytes == -1) 768 dcd->totalbytes--; // fixme for real someday 769 } 750 770 } 751 771 repos = TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.