Changeset 1615 for trunk/dll/collect.c
- Timestamp:
- Aug 13, 2011, 7:27:24 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/dll/collect.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/collect.c
r1612 r1615 78 78 29 May 11 SHL Tweak UM_COLLECT to bypass FindCnrRecord when container initially empty 79 79 08 Aug 11 SHL Rework UM_COLLECT to avoid spurious container items free 80 13 Aug 11 GKY Have file count and KIBs update at the same time 80 81 81 82 ***********************************************************************/ … … 675 676 ULONG ulRecsToInsert; 676 677 ULONG ulRecsInserted = 0; 677 ULONGLONG ullTotalBytes ;678 ULONGLONG ullTotalBytes = 0; 678 679 BOOL checkToInsert = FALSE; 679 680 CNRINFO cnri; … … 761 762 priority_normal(); 762 763 *fb4.achName = 0; 763 ullTotalBytes = FillInRecordFromFFB(dcd->hwndCnr,764 ullTotalBytes += FillInRecordFromFFB(dcd->hwndCnr, 764 765 pci, 765 766 fullname, &fb4, FALSE, dcd); 766 dcd->ullTotalBytes += ullTotalBytes;767 767 pciPrev = pci; 768 768 pci = (PCNRITEM) pci->rc.preccNextRecord; … … 807 807 // 2011-05-29 SHL fixme to complain on failure 808 808 PostMsg(dcd->hwndCnr, UM_RESCAN, MPVOID, MPVOID); 809 ulRecsInserted += ulRecsToInsert; 809 ulRecsInserted += ulRecsToInsert; 810 dcd->ullTotalBytes = ullTotalBytes; 810 811 pciFirst = NULL; 811 812 ulRecsToInsert = 0; … … 887 888 *p = 0; 888 889 } 889 / * fullname now contains name of file to collect */890 // fullname now contains name of file to collect 890 891 DosError(FERR_DISABLEHARDERR); 891 892 if (FindCnrRecord(dcd->hwndCnr, … … 901 902 MPFROM2SHORT(0, CMA_REPOSITION | CMA_ERASE)); 902 903 } 903 /*pci = (PCNRITEM) pci->rc.preccNextRecord;904 if (pciPrev)905 pciPrev->rc.preccNextRecord = (PMINIRECORDCORE) pci;906 else907 pciFirst = pci;*/908 904 } 909 905 else if (IsFullName(fullname) && … … 913 909 &fs4, 914 910 sizeof(fs4))) { 915 / * collect it */911 // collect it 916 912 pci = WinSendMsg(dcd->hwndCnr, 917 913 CM_ALLOCRECORD,
Note:
See TracChangeset
for help on using the changeset viewer.
