Changeset 1916 for trunk/dll/grep.c


Ignore:
Timestamp:
Nov 1, 2025, 7:30:47 PM (5 days ago)
Author:
Gregg Young
Message:

Fix easize so that EAs larger than 32767 show their actual size instead of 32767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r1880 r1916  
    8181#include "sortcnr.h"                    // SortCollectorCnr
    8282#include "collect.h"
     83#include "eas.h"                        // GetLargeEASize
    8384
    8485static VOID DoAllSubdirs(GREP *grep,
     
    871872      }
    872873
    873       grep->insertedbytes += pffb->cbFile + CBLIST_TO_EASIZE(pffb->cbList);
     874      grep->insertedbytes += pffb->cbFile + pffb->cbList == 65535 ? GetLargeEASize(pffb->achName) : CBLIST_TO_EASIZE(pffb->cbList);
    874875      grep->toinsert++;
    875876      // 07 Oct 09 SHL honor sync updates
     
    913914    ULONG adjsize;
    914915
    915     adjsize = pffb->cbFile + (grep->searchEAs ? CBLIST_TO_EASIZE(pffb->cbList) : 0);
     916    adjsize = pffb->cbFile + (grep->searchEAs ? (pffb->cbList == 65535 ? GetLargeEASize(pffb->achName) : CBLIST_TO_EASIZE(pffb->cbList)) : 0);
    916917    if (grep->greaterthan) {
    917918      if (adjsize < grep->greaterthan)
Note: See TracChangeset for help on using the changeset viewer.