Changeset 1916
- Timestamp:
- Nov 1, 2025, 7:30:47 PM (5 days ago)
- Location:
- trunk/dll
- Files:
-
- 12 edited
-
autoview.c (modified) (1 diff)
-
dirsize.c (modified) (3 diffs)
-
droplist.c (modified) (2 diffs)
-
eas.c (modified) (1 diff)
-
eas.h (modified) (1 diff)
-
filldir.c (modified) (3 diffs)
-
grep.c (modified) (3 diffs)
-
info.c (modified) (2 diffs)
-
makelist.c (modified) (2 diffs)
-
saveclip.c (modified) (2 diffs)
-
seeall.c (modified) (1 diff)
-
update.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/autoview.c
r1878 r1916 510 510 CommaFmtULL(szCmmaFmtFileSize, 511 511 sizeof(szCmmaFmtFileSize), 512 pffbFile->cbFile + CBLIST_TO_EASIZE(pffbFile->cbList),512 pffbFile->cbFile + pffbFile->cbList == 65535 ? GetLargeEASize(pffbFile->achName) : CBLIST_TO_EASIZE(pffbFile->cbList), 513 513 ' '); 514 514 FDateFormat(szDate, pffbFile->fdateLastWrite); -
trunk/dll/dirsize.c
r1878 r1916 100 100 #include "pathutil.h" // AddBackslashToPath 101 101 #include "tmrsvcs.h" 102 #include "eas.h" // GetLargeEASize 102 103 103 104 typedef struct … … 208 209 if (!rc) { 209 210 ullCurDirBytes = pffbArray->cbFile; 210 ullCurDirBytes += CBLIST_TO_EASIZE(pffbArray->cbList);211 ullCurDirBytes += pffbArray->cbList == 65535 ? GetLargeEASize(pffbArray->achName) : CBLIST_TO_EASIZE(pffbArray->cbList); 211 212 } 212 213 else … … 289 290 (pffbFile->achName[1] != '.' || pffbFile->achName[2])))) { 290 291 ullCurDirBytes += pffbFile->cbFile; 291 ullCurDirBytes += CBLIST_TO_EASIZE(pffbFile->cbList) & 0x3ff;292 ullCurDirBytes += (pffbFile->cbList == 65535 ? GetLargeEASize(pffbFile->achName) : CBLIST_TO_EASIZE(pffbFile->cbList)) & 0x3ff; 292 293 293 294 if (*pchStopFlag) -
trunk/dll/droplist.c
r1780 r1916 44 44 45 45 #include "fortify.h" 46 #include "eas.h" // GetLargeEASize 46 47 47 48 static PSZ pszSrcFile = __FILE__; … … 446 447 447 448 if (!DosQueryPathInfo(szFrom, FIL_QUERYEASIZEL, &fsa4, sizeof(fsa4))) 448 pcbFile[numfiles] = fsa4.cbFile + CBLIST_TO_EASIZE(fsa4.cbList);449 pcbFile[numfiles] = fsa4.cbFile + fsa4.cbList == 65535 ? GetLargeEASize(szFrom) : CBLIST_TO_EASIZE(fsa4.cbList); 449 450 } 450 451 pulitemID[numfiles] = pDItem->ulItemID; -
trunk/dll/eas.c
r1915 r1916 1488 1488 DosPostEventSem(CompactSem); 1489 1489 } 1490 #if 1 1491 ULONG GetLargeEASize(PSZ filename) 1492 { 1493 ULONG EASize = 0; 1494 PDENA2 pdena; 1495 ULONG ulEntry = 1, ulCount = 1; 1496 int rc = 0; 1497 1498 pdena = xmalloc(65536 + 1024, pszSrcFile, __LINE__); 1499 if (pdena) { 1500 while ((rc = DosEnumAttribute(ENUMEA_REFTYPE_PATH, 1501 filename, 1502 ulEntry, 1503 (PVOID)pdena, 1504 (ULONG)65536, 1505 &ulCount, 1506 ENUMEA_LEVEL_NO_VALUE) == 0) && ulCount) 1507 { 1508 //GKY 10/10/25 name size term null EA data size sizeofcbName & EAf(lag) sizeofcbValue sizeof next offset 1509 EASize += (pdena->cbName) + pdena->cbValue + (sizeof(BYTE) * 2) + sizeof(USHORT) + sizeof(USHORT); 1510 ulEntry += ulCount; //next entry 1511 } 1512 free(pdena); 1513 DosPostEventSem(CompactSem); 1514 } 1515 return EASize; 1516 } 1517 1518 #endif 1490 1519 #pragma alloc_text(EAS,DisplayEAsProc,SaveEA,HexDumpEA,CheckEA,AddEAProc) 1491 1520 #pragma alloc_text(EAS1,HexDump,GetFileEAs,Free_FEAList,GetLargeEASize) -
trunk/dll/eas.h
r1222 r1916 32 32 HOLDFEA *GetFileEAs(CHAR * filename, BOOL ishandle, BOOL silentfail); 33 33 VOID HexDump(HWND hwnd, CHAR * value, ULONG cbValue); 34 ULONG GetLargeEASize(PSZ filename); 34 35 35 36 #endif // EAS_H -
trunk/dll/filldir.c
r1907 r1916 172 172 #include "pathutil.h" // AddBackslashToPath 173 173 #include "tmrsvcs.h" // ITIMER_DESC 174 #include "eas.h" // GetLargeEASize 174 175 175 176 // Data definitions … … 620 621 pci->crtime.minutes = pffb->ftimeCreation.minutes; 621 622 pci->crtime.hours = pffb->ftimeCreation.hours; 622 pci->easize = CBLIST_TO_EASIZE(pffb->cbList); 623 if (pffb->cbList < 65535) 624 pci->easize = CBLIST_TO_EASIZE(pffb->cbList); 625 else 626 pci->easize = GetLargeEASize(pci->pszFileName); 623 627 pci->cbFile = pffb->cbFile; 624 628 pci->attrFile = pffb->attrFile; … … 782 786 pci->crtime.minutes = pfsa4->ftimeCreation.minutes; 783 787 pci->crtime.hours = pfsa4->ftimeCreation.hours; 784 pci->easize = CBLIST_TO_EASIZE(pfsa4->cbList); 788 if (pfsa4->cbList < 65535) 789 pci->easize = CBLIST_TO_EASIZE(pfsa4->cbList); 790 else 791 pci->easize = GetLargeEASize(pszFileName); 785 792 pci->cbFile = pfsa4->cbFile; 786 793 pci->attrFile = pfsa4->attrFile; -
trunk/dll/grep.c
r1880 r1916 81 81 #include "sortcnr.h" // SortCollectorCnr 82 82 #include "collect.h" 83 #include "eas.h" // GetLargeEASize 83 84 84 85 static VOID DoAllSubdirs(GREP *grep, … … 871 872 } 872 873 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); 874 875 grep->toinsert++; 875 876 // 07 Oct 09 SHL honor sync updates … … 913 914 ULONG adjsize; 914 915 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); 916 917 if (grep->greaterthan) { 917 918 if (adjsize < grep->greaterthan) -
trunk/dll/info.c
r1863 r1916 81 81 #include "wrappers.h" // xDosFindFirst 82 82 #include "fortify.h" 83 #include "eas.h" // GetLargeEASize 83 84 84 85 // Data definitions … … 737 738 sizeof(szCmmaFmtFileSize), fs.cbFile, ' '); 738 739 CommaFmtULL(szCmmaFmtEASize, 739 sizeof(szCmmaFmtEASize), CBLIST_TO_EASIZE(fs.cbList), ' ');740 sizeof(szCmmaFmtEASize), fs.cbList == 65535 ? GetLargeEASize(pfs->szFileName) : CBLIST_TO_EASIZE(fs.cbList), ' '); 740 741 CommaFmtULL(szCmmaFmtFileEASize, 741 742 sizeof(szCmmaFmtFileEASize), 742 fs.cbFile + CBLIST_TO_EASIZE(fs.cbList),743 fs.cbFile + fs.cbList == 65535 ? GetLargeEASize(pfs->szFileName) : CBLIST_TO_EASIZE(fs.cbList), 743 744 ' '); 744 745 CommaFmtULL(szCmmaFmtFileEASizeK, 745 746 sizeof(szCmmaFmtFileEASizeK), 746 fs.cbFile + CBLIST_TO_EASIZE(fs.cbList),747 fs.cbFile + fs.cbList == 65535 ? GetLargeEASize(pfs->szFileName) : CBLIST_TO_EASIZE(fs.cbList), 747 748 'K'); 748 749 sprintf(s, -
trunk/dll/makelist.c
r1673 r1916 39 39 #include "fortify.h" // 06 May 08 SHL 40 40 #include "tmrsvcs.h" // ITIMER_DESC 41 #include "eas.h" // GetLargeEASize 41 42 42 43 static PSZ pszSrcFile = __FILE__; … … 150 151 pfl->crtime = ffb4->ftimeCreation; 151 152 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); 153 156 strcpy(pfl->fname, string); 154 157 (*list)[*pnumfiles] = pfl; -
trunk/dll/saveclip.c
r1673 r1916 67 67 #include "dirs.h" // save_dir2 68 68 #include "fortify.h" 69 #include "eas.h" // GetLargeEASize 69 70 70 71 static PSZ pszSrcFile = __FILE__; … … 961 962 break; 962 963 case 'E': 963 fprintf(fp, "%-5u", CBLIST_TO_EASIZE(ffb4.cbList));964 fprintf(fp, "%-5u", 65535 ? GetLargeEASize(ffb4.achName) : CBLIST_TO_EASIZE(ffb4.cbList)); 964 965 break; 965 966 case 'e': 966 fprintf(fp, "%u", CBLIST_TO_EASIZE(ffb4.cbList));967 fprintf(fp, "%u", 65535 ? GetLargeEASize(ffb4.achName) : CBLIST_TO_EASIZE(ffb4.cbList)); 967 968 break; 968 969 case 'd': -
trunk/dll/seeall.c
r1880 r1916 815 815 &fs4, sizeof(fs4)) && 816 816 !(fs4.attrFile & FILE_DIRECTORY) && 817 // fixme to use CBLIST_TO_EASIZE? 817 // fixme to use CBLIST_TO_EASIZE? No as it understates the size of EA > 32K 818 818 fs4.cbFile + fs4.cbList <= ullFreeBytes) { 819 819 // Swap with failing item -
trunk/dll/update.c
r1890 r1916 51 51 #include "misc.h" // PostMsg 52 52 #include "fortify.h" 53 #include "eas.h" // GetLargeEASize 53 54 54 55 #ifdef PMPRINTF … … 142 143 if ((!fForceUpper && !fForceLower && strcmp(pci->pszFileName, filename)) || 143 144 pci->cbFile != ffb.cbFile || pci->attrFile != ffb.attrFile || 144 pci->easize != CBLIST_TO_EASIZE(ffb.cbList) || pci->date.day !=145 pci->easize != 65535 ? GetLargeEASize(filename) : CBLIST_TO_EASIZE(ffb.cbList) || pci->date.day != 145 146 ffb.fdateLastWrite.day || pci->date.month != ffb.fdateLastWrite.month || 146 147 pci->date.year != ffb.fdateLastWrite.year + 1980 || pci->time.seconds != … … 405 406 strcmp(pci->pszFileName, filename[x])) || 406 407 pci->cbFile != ffb.cbFile || pci->attrFile != ffb.attrFile || 407 pci->easize != CBLIST_TO_EASIZE(ffb.cbList) ||408 pci->easize != 65535 ? GetLargeEASize(filename[x]) : CBLIST_TO_EASIZE(ffb.cbList) || 408 409 pci->date.day != ffb.fdateLastWrite.day || 409 410 pci->date.month != ffb.fdateLastWrite.month ||
Note:
See TracChangeset
for help on using the changeset viewer.
