Changeset 1915 for trunk/dll/comp.c


Ignore:
Timestamp:
Nov 1, 2025, 7:27:49 PM (44 hours ago)
Author:
Gregg Young
Message:

Improve readability of insert_filename (use 0,1,2 instead of FALSE, TRUE,2 for loadit). Fix it so pszIDrive is only set from lastfilename if filename is NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r1900 r1915  
    153153#include "worker.h"                     // MOVEIT
    154154#include "rename.h"                     // RenameProc
     155#include "eas.h"                        // GetLargeEASize
    155156
    156157#ifdef PMPRINTF
     
    216217                    pffb->ftimeLastWrite.minutes,
    217218                    pffb->ftimeLastWrite.twosecs,
    218                     pffb->attrFile,
    219                     pffb->cbList > 4 ? pffb->cbList / 2 : 0);
     219                    pffb->attrFile,
     220                    pffb->cbList == 65535 ? GetLargeEASize(pffb->achName) : CBLIST_TO_EASIZE(pffb->cbList));
    220221          }
    221222          // Skip . and ..
     
    18391840                                      p = strchr(p, ',');
    18401841                                      if (p) {
    1841                                         p++;
    1842                                         fb4.cbList = atol(p) * 2;
     1842                                        p++;
     1843                                        //Since cbList is a ulong and will always be even the fact they can exceed
     1844                                        //65535 doesn't matter. 31 Oct 25 GKY
     1845                                        fb4.cbList = atol(p) * 2;
    18431846                                        if (fForceUpper)
    18441847                                          strupr(str + 1);
     
    24262429
    24272430        strcpy(fullname, PCSZ_STARDOTPMD);
    2428         if (insert_filename(HWND_DESKTOP, fullname, TRUE, FALSE) &&
     2431        if (insert_filename(HWND_DESKTOP, fullname, 1, FALSE) &&
    24292432            *fullname && !strchr(fullname, '*') && !strchr(fullname, '?'))
    24302433          strcpy(cmp->rightlist, fullname);
     
    32193222
    32203223        strcpy(fullname, PCSZ_STARDOTPMD);
    3221         if (insert_filename(HWND_DESKTOP, fullname, TRUE, FALSE) &&
     3224        if (insert_filename(HWND_DESKTOP, fullname, 1, FALSE) &&
    32223225            *fullname && !strchr(fullname, '*') && !strchr(fullname, '?')) {
    32233226          strcpy(cmp->rightlist, fullname);
     
    32873290
    32883291            strcpy(fullname, PCSZ_STARDOTPMD);
    3289             if (insert_filename(HWND_DESKTOP, fullname, TRUE, FALSE) &&
     3292            if (insert_filename(HWND_DESKTOP, fullname, 1, FALSE) &&
    32903293                *fullname && !strchr(fullname, '*') && !strchr(fullname, '?'))
    32913294              strcpy(cmp->rightlist, fullname);
Note: See TracChangeset for help on using the changeset viewer.