Changeset 1398 for trunk/dll/arccnrs.c


Ignore:
Timestamp:
Feb 21, 2009, 6:43:00 PM (16 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/arccnrs.c

    r1395 r1398  
    339339    pdcd = WinQueryWindowPtr(hwndCnr, QWL_USER);
    340340    if (!pdcd) {
    341       Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
     341      Runtime_Error(pszSrcFile, __LINE__, NULL);
    342342      return ret;
    343343    }
     
    602602  *pullTotalBytes = 0;
    603603  if (!info || !info->list)
    604     Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
     604    Runtime_Error(pszSrcFile, __LINE__, NULL);
    605605  else {
    606606    RemoveArcItems(hwndCnr, NULL, 0, CMA_FREE | CMA_INVALIDATE | CMA_ERASE);
     
    655655        if (rc) {
    656656          Dos_Error(MB_CANCEL, rc, hwndCnr, pszSrcFile, __LINE__,
    657                     "DosDupHandle");
     657                    PCSZ_DOSDUPHANDLE);
    658658          xfree(arctemp, pszSrcFile, __LINE__);
    659659          return 0;
     
    665665          if (rc) {
    666666            Dos_Error(MB_CANCEL, rc, hwndCnr, pszSrcFile, __LINE__,
    667                       "DosDupHandle");
     667                      PCSZ_DOSDUPHANDLE);
    668668            xfree(arctemp, pszSrcFile, __LINE__);
    669669            return 0;
     
    14981498    dcd = WinQueryWindowPtr(hwnd, QWL_USER);
    14991499    if (!dcd) {
    1500       Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
     1500      Runtime_Error(pszSrcFile, __LINE__, NULL);
    15011501      PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID);
    15021502    }
     
    20242024                CHAR szTempFile[CCHMAXPATH];
    20252025
    2026                 BldFullPathName(szTempFile, pTmpDir, "$FM2PLAY.$$$");
     2026                BldFullPathName(szTempFile, pTmpDir, PCSZ_FM2PLAYTEMP);
    20272027                fp = xfopen(szTempFile, "w", pszSrcFile, __LINE__);
    20282028                if (fp) {
     
    20352035                  strcat(szTempFile, "@/");
    20362036                  strrev(szTempFile);
    2037                   RunFM2Util("FM2PLAY.EXE", szTempFile);
     2037                  RunFM2Util(PCSZ_FM2PLAYEXE, szTempFile);
    20382038                }
    20392039              }
     
    24772477  case UM_SETUP:
    24782478    if (!dcd) {
    2479       Runtime_Error2(pszSrcFile, __LINE__, IDS_NODATATEXT);
     2479      Runtime_Error(pszSrcFile, __LINE__, NULL);
    24802480      PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID);
    24812481      return 0;
Note: See TracChangeset for help on using the changeset viewer.