- Timestamp:
- May 21, 2004, 5:21:19 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r2 r96 1 2 /*********************************************************************** 3 4 $Id$ 5 6 Collector 7 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003 Steven H.Levine 10 11 Revisions 15 Oct 02 MK - Baseline 12 10 Jan 04 SHL - Avoid -1L byte counts 13 14 ***********************************************************************/ 15 1 16 #define INCL_DOS 2 17 #define INCL_WIN … … 33 48 34 49 35 MRESULT EXPENTRY CollectorTextProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) {36 50 MRESULT EXPENTRY CollectorTextProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) 51 { 37 52 static BOOL emphasized = FALSE; 38 53 static HWND hwndButtonPopup = (HWND)0; … … 560 575 DosError(FERR_DISABLEHARDERR); 561 576 dcd = WinQueryWindowPtr(hwnd,0); 562 if (dcd) {563 577 if (dcd) 578 { 564 579 LISTINFO *li = (LISTINFO *)mp1; 565 580 INT x; … … 570 585 RECORDINSERT ri; 571 586 ULONG ulMaxFiles; 587 ULONG totalbytes; 572 588 CHAR fullname[CCHMAXPATH]; 573 589 … … 610 626 priority_normal(); 611 627 *fb4.achName = 0; 612 dcd->totalbytes += FillInRecordFromFFB(dcd->hwndCnr,pci, 613 fullname, 614 &fb4,FALSE, 615 dcd); 628 totalbytes = FillInRecordFromFFB(dcd->hwndCnr,pci, 629 fullname, 630 &fb4,FALSE, 631 dcd); 632 if (totalbytes != -1) { 633 dcd->totalbytes += totalbytes; 634 if (dcd->totalbytes == -1) 635 dcd->totalbytes--; // fixme for real someday 636 } 616 637 pciP = pci; 617 638 pci = (PCNRITEM)pci->rc.preccNextRecord;
Note:
See TracChangeset
for help on using the changeset viewer.