Changeset 1615 for trunk/dll/collect.c


Ignore:
Timestamp:
Aug 13, 2011, 7:27:24 PM (14 years ago)
Author:
Gregg Young
Message:

Have collector file count and KIBs update at the same time. (Ticket 455)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/collect.c

    r1612 r1615  
    7878  29 May 11 SHL Tweak UM_COLLECT to bypass FindCnrRecord when container initially empty
    7979  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
    8081
    8182***********************************************************************/
     
    675676        ULONG ulRecsToInsert;
    676677        ULONG ulRecsInserted = 0;
    677         ULONGLONG ullTotalBytes;
     678        ULONGLONG ullTotalBytes = 0;
    678679        BOOL checkToInsert = FALSE;
    679680        CNRINFO cnri;
     
    761762            priority_normal();
    762763            *fb4.achName = 0;
    763             ullTotalBytes = FillInRecordFromFFB(dcd->hwndCnr,
     764            ullTotalBytes += FillInRecordFromFFB(dcd->hwndCnr,
    764765                                                pci,
    765766                                                fullname, &fb4, FALSE, dcd);
    766             dcd->ullTotalBytes += ullTotalBytes;
    767767            pciPrev = pci;
    768768            pci = (PCNRITEM) pci->rc.preccNextRecord;
     
    807807              // 2011-05-29 SHL fixme to complain on failure
    808808              PostMsg(dcd->hwndCnr, UM_RESCAN, MPVOID, MPVOID);
    809               ulRecsInserted += ulRecsToInsert;
     809              ulRecsInserted += ulRecsToInsert;
     810              dcd->ullTotalBytes = ullTotalBytes;
    810811              pciFirst = NULL;
    811812              ulRecsToInsert = 0;
     
    887888                *p = 0;
    888889            }
    889             /* fullname now contains name of file to collect */
     890            // fullname now contains name of file to collect
    890891            DosError(FERR_DISABLEHARDERR);
    891892            if (FindCnrRecord(dcd->hwndCnr,
     
    901902                           MPFROM2SHORT(0, CMA_REPOSITION | CMA_ERASE));
    902903              }
    903               /*pci = (PCNRITEM) pci->rc.preccNextRecord;
    904               if (pciPrev)
    905                 pciPrev->rc.preccNextRecord = (PMINIRECORDCORE) pci;
    906               else
    907                 pciFirst = pci;*/
    908904            }
    909905            else if (IsFullName(fullname) &&
     
    913909                                  &fs4,
    914910                                  sizeof(fs4))) {
    915               /* collect it */
     911              // collect it
    916912              pci = WinSendMsg(dcd->hwndCnr,
    917913                               CM_ALLOCRECORD,
Note: See TracChangeset for help on using the changeset viewer.