Changeset 1366 for trunk/dll/grep2.c


Ignore:
Timestamp:
Jan 1, 2009, 10:36:46 PM (17 years ago)
Author:
Gregg Young
Message:

Seek and scan called from the dir or drive context menu opens seek and scan and provides the path to start the search from. (Ticket 167)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep2.c

    r1335 r1366  
    188188  CHAR simple[8192];
    189189  CHAR path[CCHMAXPATH];
     190  GREPINFO *GrepInfo;
    190191
    191192  static CHAR lastmask[8192] = "*";
     
    200201  static BOOL findifany = TRUE;
    201202  static BOOL gRemember = FALSE;
    202   ULONG size = sizeof(BOOL);
     203  ULONG size;
    203204  static UINT newer = 0;
    204205  static UINT older = 0;
     
    212213      break;
    213214    }
    214     WinSetWindowULong(hwnd, QWL_USER, *(HWND *) mp2);
     215    GrepInfo = mp2;
     216    if (GrepInfo->szGrepPath)
     217      BldFullPathName(lastmask, GrepInfo->szGrepPath, "*");
     218    WinSetWindowULong(hwnd, QWL_USER, *(HWND *) GrepInfo->hwnd);
    215219    WinSendDlgItemMsg(hwnd,
    216220                      GREP_MASK,
     
    232236    WinSetDlgItemText(hwnd, GREP_MASK, lastmask);
    233237    WinSendDlgItemMsg(hwnd,
    234                       GREP_MASK, EM_SETSEL, MPFROM2SHORT(0, 8192), MPVOID);
     238                      GREP_MASK, EM_SETSEL, MPFROM2SHORT(0, 8192), MPVOID);
     239    size = sizeof(BOOL);
    235240    PrfQueryProfileData(fmprof, FM3Str, "RememberFlagsGrep",
    236241                        (PVOID) & gRemember, &size);
    237242    WinCheckButton(hwnd, GREP_REMEMBERFLAGS, gRemember);
    238243    if (gRemember) {
     244      size = sizeof(BOOL);
    239245      PrfQueryProfileData(fmprof, FM3Str, "Grep_Recurse",
    240                           (PVOID) & recurse, &size);
     246                          (PVOID) & recurse, &size);
     247      size = sizeof(BOOL);
    241248      PrfQueryProfileData(fmprof, FM3Str, "Grep_Absolute",
    242                           (PVOID) & absolute, &size);
     249                          (PVOID) & absolute, &size);
     250      size = sizeof(BOOL);
    243251      PrfQueryProfileData(fmprof, FM3Str, "Grep_Case",
    244                           (PVOID) & sensitive, &size);
     252                          (PVOID) & sensitive, &size);
     253      size = sizeof(BOOL);
    245254      PrfQueryProfileData(fmprof, FM3Str, "Grep_Sayfiles",
    246                           (PVOID) & sayfiles, &size);
     255                          (PVOID) & sayfiles, &size);
     256      size = sizeof(BOOL);
    247257      PrfQueryProfileData(fmprof, FM3Str, "Grep_Searchfiles",
    248                           (PVOID) & searchFiles, &size);
     258                          (PVOID) & searchFiles, &size);
     259      size = sizeof(BOOL);
    249260      PrfQueryProfileData(fmprof, FM3Str, "Grep_SearchfEAs",
    250261                          (PVOID) & searchEAs, &size);
Note: See TracChangeset for help on using the changeset viewer.