Changeset 1827 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Jul 12, 2015, 11:32:10 PM (10 years ago)
Author:
Gregg Young
Message:

Prevent trap on tree container rescan caused by a pci->pszFileName being NullStr. Ticket 554

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1819 r1827  
    788788      if (cnri.cRecords) {
    789789        sprintf(s, GetPString(IDS_NUMDRIVESTEXT), cnri.cRecords);
    790         if (pci && (INT) pci != -1 && pci->pszFileName) { //fixme? will try checking pci->pszFileName instead of the pointer
     790        if (pci && (INT) pci != -1 && pci->pszFileName != NullStr) { //fixme? will try checking pci->pszFileName instead of the pointer
    791791          if (!(driveflags[toupper(*pci->pszFileName) - 'A'] &
    792792                DRIVE_REMOVABLE) ||
Note: See TracChangeset for help on using the changeset viewer.