Changeset 1456


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

Avoid crash on Ctrl-g from collector window

Location:
trunk/dll
Files:
4 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,
  • trunk/dll/fm3dll2.h

    r1455 r1456  
    741741#define UM_HIDENOTSELECTED  (WM_USER + 73)
    742742#define UM_FIRSTTIME        (WM_USER + 74)
    743 // #define UM_ACTIONSTATE      (WM_USER + 75)   // 13 Sep 09 SHL unused SHL
     743#define UM_GREP             (WM_USER + 75)   // 15 Sep 09 SHL
    744744#define UM_FILLUSERLIST     (WM_USER + 75)
    745745#define UM_CONTAINERDIR     (WM_USER + 76)
  • trunk/dll/grep.c

    r1438 r1456  
    528528          }
    529529          DoAllSubdirs(grep, searchPath, TRUE, fle, numfls, pitdSleep, pitdReport);
    530           // DosSleep(0); //26 Aug 07 GKY 1     // 07 Feb 08 SHL
    531530        }
    532531      }
  • trunk/dll/treecnr.c

    r1455 r1456  
    7676  22 Jul 09 GKY Streamline scanning code for faster Tree rescans
    7777  14 Sep 09 SHL Drop experimental code
     78  15 Sep 09 SHL Use UM_GREP when passing pathname
    7879
    7980***********************************************************************/
     
    27032704          if (pci && (INT) pci != -1)
    27042705            PostMsg(Collector, WM_COMMAND,
    2705                     MPFROM2SHORT(IDM_GREP, 0), MPFROMP(pci->pszFileName));
     2706                    MPFROM2SHORT(UM_GREP, 0), MPFROMP(pci->pszFileName));
    27062707          else
    27072708            PostMsg(Collector, WM_COMMAND,
Note: See TracChangeset for help on using the changeset viewer.