Changeset 1456 for trunk/dll/collect.c


Ignore:
Timestamp:
Sep 15, 2009, 9:13:40 AM (16 years ago)
Author:
Steven Levine
Message:

Avoid crash on Ctrl-g from collector window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/collect.c

    r1442 r1456  
    6767  06 Jun 09 GKY Add option to show file system type or drive label in tree
    6868  12 Jul 09 GKY Add szFSType to FillInRecordFromFSA use to bypass EA scan and size formatting
    69                 for tree container
     69                for tree container
    7070  13 Jul 09 GKY Fixed double free of memory buffer in UM_COLLECTFROMFILE
     71  15 Sep 09 SHL Use UM_GREP when passing pathname
    7172
    7273***********************************************************************/
     
    839840                dcd->ullTotalBytes += FillInRecordFromFSA(dcd->hwndCnr, pci,
    840841                                                          fullname,
    841                                                           &fs4, FALSE, 0, dcd);
     842                                                          &fs4, FALSE, NULL, dcd);
    842843                memset(&ri, 0, sizeof(RECORDINSERT));
    843844                ri.cb = sizeof(RECORDINSERT);
     
    13411342            }
    13421343            CommaFmtULL(tb, sizeof(tb), pci->cbFile + pci->easize, ' ');
    1343             if (!fMoreButtons) {
    1344               DateFormat(szDate, pci->date);
     1344            if (!fMoreButtons) {
     1345              DateFormat(szDate, pci->date);
    13451346              sprintf(s, " %s  %s %02u%s%02u%s%02u  [%s]  %s",
    13461347                      tb, szDate, pci->time.hours, TimeSeparator, pci->time.minutes,
     
    13591360          }
    13601361          if (fMoreButtons) {
    1361             WinSetWindowText(hwndName, pci->pszFileName);
    1362             DateFormat(szDate, pci->date);
     1362            WinSetWindowText(hwndName, pci->pszFileName);
     1363            DateFormat(szDate, pci->date);
    13631364            sprintf(s, "%s %02u%s%02u%s%02u",
    13641365                    szDate, pci->time.hours, TimeSeparator, pci->time.minutes,
     
    19441945
    19451946      case IDM_GREP:
     1947      case UM_GREP:
    19461948        if (dcd->amextracted) {
    19471949          saymsg(MB_OK | MB_ICONASTERISK,
     
    19561958          if (GrepInfo) {
    19571959            GrepInfo->hwnd = &hwnd;
    1958             if (mp2)
     1960            if (msg == UM_GREP && mp2)
    19591961              GrepInfo->szGrepPath = mp2;
    19601962            if (WinDlgBox(HWND_DESKTOP, hwnd, GrepDlgProc,
     
    27322734                  }
    27332735                  CommaFmtULL(tb, sizeof(tb), pci->cbFile + pci->easize, ' ');
    2734                   if (!fMoreButtons) {
    2735                     DateFormat(szDate, pci->date);
     2736                  if (!fMoreButtons) {
     2737                    DateFormat(szDate, pci->date);
    27362738                    sprintf(s, " %s  %s %02u%s%02u%s%02u  [%s]  %s",
    27372739                            tb, szDate, pci->time.hours, TimeSeparator,
    27382740                            pci->time.minutes, TimeSeparator, pci->time.seconds,
    2739                             pci->pszDispAttr, p);
    2740                   }
     2741                            pci->pszDispAttr, p);
     2742                  }
    27412743                  else {
    27422744                    if (pci->cbFile + pci->easize > 1024)
     
    27522754                }
    27532755                if (fMoreButtons) {
    2754                   WinSetWindowText(hwndName, pci->pszFileName);
    2755                   DateFormat(szDate, pci->date);
     2756                  WinSetWindowText(hwndName, pci->pszFileName);
     2757                  DateFormat(szDate, pci->date);
    27562758                  sprintf(s, "%s %02u%s%02u%s%02u",
    27572759                          szDate, pci->time.hours, TimeSeparator, pci->time.minutes,
Note: See TracChangeset for help on using the changeset viewer.