Changeset 746 for trunk/dll/comp.c


Ignore:
Timestamp:
Jul 31, 2007, 2:49:52 AM (18 years ago)
Author:
Gregg Young
Message:

Fixed most of the display problems still shows 0 for size eas and date on nonexistant file. names are now correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/dll/comp.c

    r742 r746  
    473473              pciO->pszFileName = xstrdup(newname, pszSrcFile, __LINE__);
    474474              if (hwndCnrS == WinWindowFromID(cmp->hwnd, COMP_RIGHTDIR)) {
    475                 pciO->pszFileName = pciO->pszFileName + strlen(cmp->leftdir);
     475                pciO->pszDisplayName = pciO->pszFileName + strlen(cmp->leftdir);
    476476                if (cmp->leftdir[strlen(cmp->leftdir) - 1] != '\\')
    477477                  pciO->pszFileName++;
    478478              }
    479479              else {
    480                 pciO->pszFileName = pciO->pszFileName + strlen(cmp->rightdir);
     480                pciO->pszDisplayName = pciO->pszFileName + strlen(cmp->rightdir);
    481481                if (cmp->rightdir[strlen(cmp->rightdir) - 1] != '\\')
    482482                  pciO->pszFileName++;
     
    554554              pciO->pszFileName = xstrdup(newname, pszSrcFile, __LINE__);
    555555              if (hwndCnrS == WinWindowFromID(cmp->hwnd, COMP_RIGHTDIR)) {
    556                 pciO->pszFileName = pciO->pszFileName + strlen(cmp->leftdir);
     556                pciO->pszDisplayName = pciO->pszFileName + strlen(cmp->leftdir);
    557557                if (cmp->leftdir[strlen(cmp->leftdir) - 1] != '\\')
    558558                  pciO->pszFileName++;
    559559              }
    560560              else {
    561                 pciO->pszFileName = pciO->pszFileName + strlen(cmp->rightdir);
     561                pciO->pszDisplayName = pciO->pszFileName + strlen(cmp->rightdir);
    562562                if (cmp->rightdir[strlen(cmp->rightdir) - 1] != '\\')
    563563                  pciO->pszFileName++;
     
    10301030          pcir->pszFileName = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__);//29 Jul 07 GKY Temp fix to crash
    10311031          pcir->rc.pszIcon = pcir->pszFileName;
    1032           pcir->rc.hptrIcon = (HPOINTER) 0;
    1033           pcir->pszDisplayName = pcir->pszFileName;     // Not used here
     1032          pcir->rc.hptrIcon = (HPOINTER) 0;
     1033          pcir->pszDisplayName = NULL;          // Not used here
    10341034          pcir->pszSubject = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__);
    10351035          //pcir->pszLongname = pcir->pszFileName;
     
    10411041          pcil->rc.hptrIcon = (HPOINTER) 0;
    10421042          pcil->pszDispAttr = pcil->szDispAttr;
    1043           pcil->pszDisplayName = pcil->pszFileName;     // Not used here
     1043          pcil->pszDisplayName = NULL; // Not used here
    10441044          pcil->pszSubject = xmalloc(CCHMAXPATH, pszSrcFile, __LINE__) ;
    10451045          //pcil->pszLongname = pcil->pszFileName;
     
    10521052                      NullStr : "\\", filesl[l]->fname);
    10531053              // pcil->rc.hptrIcon = hptrFile;
    1054               pcil->pszFileName = pcil->pszFileName + lenl;
     1054              pcil->pszDisplayName = pcil->pszFileName + lenl;
    10551055              pcil->attrFile = filesl[l]->attrFile;
    10561056              y = 0;
     
    10911091                      (cmp->rightdir[strlen(cmp->rightdir) - 1] == '\\') ?
    10921092                      NullStr : "\\", filesr[r]->fname);
    1093               pcir->pszFileName = pcir->pszFileName + lenr;
     1093              pcir->pszDisplayName = pcir->pszFileName + lenr;
    10941094              pcir->attrFile = filesr[r]->attrFile;
    10951095              // pcir->rc.hptrIcon = hptrFile;
     
    11891189                      (cmp->leftdir[strlen(cmp->leftdir) - 1] == '\\') ?
    11901190                      NullStr : "\\", filesl[l]->fname);
    1191               pcil->pszFileName = pcil->pszFileName + lenl;
     1191              pcil->pszDisplayName = pcil->pszFileName + lenl;
    11921192              pcil->attrFile = filesl[l]->attrFile;
    11931193              // pcil->rc.hptrIcon = hptrFile;
     
    12331233                      (cmp->rightdir[strlen(cmp->rightdir) - 1] == '\\') ?
    12341234                      NullStr : "\\", filesr[r]->fname);
    1235               pcir->pszFileName = pcir->pszFileName + lenr;
     1235              pcir->pszDisplayName = pcir->pszFileName + lenr;
    12361236              pcir->attrFile = filesr[r]->attrFile;
    12371237              // pcir->rc.hptrIcon = hptrFile;
     
    12791279                    (cmp->leftdir[strlen(cmp->leftdir) - 1] == '\\') ?
    12801280                    NullStr : "\\", filesl[l]->fname);
    1281             pcil->pszFileName = pcil->pszFileName + lenl;
     1281            pcil->pszDisplayName = pcil->pszFileName + lenl;
    12821282            pcil->attrFile = filesl[l]->attrFile;
    12831283            // pcil->rc.hptrIcon = hptrFile;
     
    13231323                    (cmp->rightdir[strlen(cmp->rightdir) - 1] == '\\') ?
    13241324                    NullStr : "\\", filesr[r]->fname);
    1325             pcir->pszFileName = pcir->pszFileName + lenr;
     1325            pcir->pszDisplayName = pcir->pszFileName + lenr;
    13261326            pcir->attrFile = filesr[r]->attrFile;
    13271327            // pcir->rc.hptrIcon = hptrFile;
Note: See TracChangeset for help on using the changeset viewer.