Changeset 1916 for trunk/dll/makelist.c


Ignore:
Timestamp:
Nov 1, 2025, 7:30:47 PM (3 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/makelist.c

    r1673 r1916  
    3939#include "fortify.h"                    // 06 May 08 SHL
    4040#include "tmrsvcs.h"                    // ITIMER_DESC
     41#include "eas.h"                        // GetLargeEASize
    4142
    4243static PSZ pszSrcFile = __FILE__;
     
    150151    pfl->crtime = ffb4->ftimeCreation;
    151152    pfl->cbFile = ffb4->cbFile;
    152     pfl->easize = CBLIST_TO_EASIZE(ffb4->cbList);
     153    //Need to account for snapshot file but since cbList is a ulong and will always be even the fact they can exceed
     154    //65535 doesn't matter. 31 Oct 25 GKY
     155    pfl->easize = ffb4->cbList == 65535 ? GetLargeEASize(ffb4->achName) : CBLIST_TO_EASIZE(ffb4->cbList);
    153156    strcpy(pfl->fname, string);
    154157    (*list)[*pnumfiles] = pfl;
Note: See TracChangeset for help on using the changeset viewer.