Changeset 859 for trunk/dll/misc.c


Ignore:
Timestamp:
Nov 5, 2007, 11:32:39 PM (18 years ago)
Author:
Gregg Young
Message:

Changed display logic so CommaFmtULL is used both with and without large file support for file size display. GiB notation can actually be selected in the source (in addition to being used automatically on very large drives).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r856 r859  
    553553    // Fill in column information for the file size
    554554
    555     if(fNoLargeFileSupport) {
    556       pfi = pfi->pNextFieldInfo;
    557       pfi->flData = CFA_ULONG | CFA_RIGHT | CFA_SEPARATOR | CFA_FIREADONLY;
    558       pfi->flTitle = CFA_CENTER;
    559       pfi->pTitleData = GetPString(IDS_SIZE);
    560       pfi->offStruct = FIELDOFFSET(CNRITEM, cbFile);
    561     }
    562     else {
    563       pfi = pfi->pNextFieldInfo;
    564       pfi->flData = CFA_STRING | CFA_RIGHT | CFA_SEPARATOR | CFA_FIREADONLY;
    565       pfi->flTitle = CFA_CENTER;
    566       pfi->pTitleData = GetPString(IDS_SIZE);
    567       pfi->offStruct = FIELDOFFSET(CNRITEM, pszFmtFileSize);
    568     }
     555
     556    pfi = pfi->pNextFieldInfo;
     557    pfi->flData = CFA_STRING | CFA_RIGHT | CFA_SEPARATOR | CFA_FIREADONLY;
     558    pfi->flTitle = CFA_CENTER;
     559    pfi->pTitleData = GetPString(IDS_SIZE);
     560    pfi->offStruct = FIELDOFFSET(CNRITEM, pszFmtFileSize);
     561
    569562
    570563    // Fill in the column information for the file's ea size
Note: See TracChangeset for help on using the changeset viewer.