Changeset 1398 for trunk/dll/newview.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/newview.c

    r1395 r1398  
    375375        }
    376376      }
    377       Runtime_Error(pszSrcFile, __LINE__, "no data");
     377      Runtime_Error(pszSrcFile, __LINE__, NULL);
    378378      break;
    379379
     
    12541254      ad = WinQueryWindowPtr(hwnd, QWL_USER);
    12551255      if (!ad)
    1256         Runtime_Error(pszSrcFile, __LINE__, "no data");
     1256        Runtime_Error(pszSrcFile, __LINE__, NULL);
    12571257      else {
    12581258        if (!DosRequestMutexSem(ad->ScanSem, SEM_INDEFINITE_WAIT)) {
     
    18641864  case UM_SETUP:
    18651865    if (!ad)
    1866       Runtime_Error(pszSrcFile, __LINE__, "no data");
     1866      Runtime_Error(pszSrcFile, __LINE__, NULL);
    18671867    else {
    18681868      CHAR s[CCHMAXPATH + 8];
     
    18791879      if (rc)
    18801880        Dos_Error(MB_CANCEL, rc, hwnd, pszSrcFile, __LINE__,
    1881                   "DosCreateMutexSem");
     1881                  PCSZ_DOSCREATEMUTEXSEM);
    18821882      else {
    18831883        PFNWP oldproc;
Note: See TracChangeset for help on using the changeset viewer.