Changeset 1900 for trunk/dll/comp.c


Ignore:
Timestamp:
May 29, 2024, 10:03:01 PM (15 months ago)
Author:
Gregg Young
Message:

Fix ticket #575 spurious display of 00/00/00 date 0 eas and 0 time in compare directories on files that don't exist in one of the directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r1891 r1900  
    153153#include "worker.h"                     // MOVEIT
    154154#include "rename.h"                     // RenameProc
     155
     156#ifdef PMPRINTF
     157#define  _PMPRINTF_                     // Enable debug macros
     158#include "PMPRINTF.H"
     159#endif
    155160
    156161typedef struct
     
    19871992            x = +1;                     // Right side list longer
    19881993
    1989           if (x <= 0) {
     1994          if (x <= 0) {
    19901995            // File appears on left side
    19911996            cmp->cmp->totalleft++;
     
    19962001            pcil->attrFile = filesl[l]->attrFile;
    19972002            pcil->pszDispAttr = FileAttrToString(pcil->attrFile);
    1998             pcil->cbFile = filesl[l]->cbFile;
     2003            pcil->cbFile = filesl[l]->cbFile;
    19992004            // 12 Jan 08 SHL FIXME to use cached size here too
    20002005            CommaFmtULL(szBuf, sizeof(szBuf), pcil->cbFile, ' ');
     
    20202025            pcil->crtime.hours = filesl[l]->crtime.hours;
    20212026            DosRequestMutexSem(hmtxFiltering, SEM_INDEFINITE_WAIT);
    2022             if (cmp && *cmp->dcd.mask.szMask) {
     2027            if (cmp && *cmp->dcd.mask.szMask) {
    20232028              if (!Filter((PMINIRECORDCORE)pcil, (PVOID)&cmp->dcd.mask)) {
    20242029                pcil->rc.flRecordAttr |= CRA_FILTERED;
     
    21392144          if (!pcil->pszFileName) {
    21402145            pcil->pszFileName = NullStr;
    2141             pcil->pszDisplayName = pcil->pszFileName;
     2146            pcil->pszDisplayName = pcil->pszFileName;
    21422147          }
    21432148
    21442149          if (!pcir->pszFileName) {
    21452150            pcir->pszFileName = NullStr;
    2146             pcir->pszDisplayName = pcir->pszFileName;
     2151            pcir->pszDisplayName = pcir->pszFileName;
    21472152          }
    21482153
     
    25962601        // 01 Aug 07 SHL if field null or blank, we draw
    25972602        // FIXME to document why - probably to optimize and bypass draw?
    2598         if (pci && (INT)pci != -1 && !*pci->pszFileName && pci->pszFileName != NullStr)
     2603        if (pci && (INT)pci != -1 && !*pci->pszFileName)
    25992604          return MRFROMLONG(TRUE);
    26002605      }
Note: See TracChangeset for help on using the changeset viewer.