Changeset 1398 for trunk/dll/grep2.c


Ignore:
Timestamp:
Feb 21, 2009, 6:43:00 PM (17 years ago)
Author:
Gregg Young
Message:

Move embeded strings to PCSZ variables or string table; Eliminate Error2 functions Runtime_Error with NULL format string returns "No data" error. Change declares from PSZ to PCSZ in functions where the variable isn't changed. Added btm as an executable file type in several additional places. Use fProtectOnly to prevent attempt to execute Dos and Win programs on "Protect only" installs in several additional places.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep2.c

    r1395 r1398  
    302302    WinEnableWindow(WinWindowFromID(hwnd, GREP_NOSIZEDUPES), FALSE);
    303303
    304     BldFullPathName(s, pFM2SaveDirectory, "GREPMASK.DAT");
     304    BldFullPathName(s, pFM2SaveDirectory, PCSZ_GREPMASKDAT);
    305305    fp = _fsopen(s, "r", SH_DENYWR);
    306306    if (fp) {
     
    808808      hwndCollect = WinQueryWindowULong(hwnd, QWL_USER);
    809809      if (!hwndCollect)
    810         Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
     810        Runtime_Error(pszSrcFile, __LINE__, NULL);
    811811      else {
    812812        // 07 Feb 08 SHL - fixme to malloc and free in thread
     
    983983                                            MPVOID, MPVOID);
    984984        if (sSelect > 0) {
    985           BldFullPathName(s, pFM2SaveDirectory, "GREPMASK.DAT");
     985          BldFullPathName(s, pFM2SaveDirectory, PCSZ_GREPMASKDAT);
    986986          if (CheckDriveSpaceAvail(s, ullDATFileSpaceNeeded, 1) == 2)
    987987            break; //already gave error msg
Note: See TracChangeset for help on using the changeset viewer.