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

    r1397 r1398  
    392392
    393393  if (!pis) {
    394     Runtime_Error(pszSrcFile, __LINE__, "no data");
     394    Runtime_Error(pszSrcFile, __LINE__, NULL);
    395395    if (msg != WM_DESTROY)
    396396      return WinDefWindowProc(hwnd, msg, mp1, mp2);
     
    464464    if (pis->lasthwndMenu) {
    465465      p = strrchr(pis->pfs->szFileName, '.');
    466       if (!p || (stricmp(p, ".ICO") && stricmp(p, ".PTR")))
     466      if (!p || (stricmp(p, PCSZ_DOTICO) && stricmp(p, PCSZ_DOTPTR)))
    467467        WinSendMsg(pis->lasthwndMenu,
    468468                   MM_DELETEITEM,
     
    598598        pfs = WinQueryWindowPtr(hwnd, QWL_USER);
    599599        if (!pfs) {
    600           Runtime_Error(pszSrcFile, __LINE__, "no data");
     600          Runtime_Error(pszSrcFile, __LINE__, NULL);
    601601          WinDismissDlg(hwnd, 1);
    602602        }
Note: See TracChangeset for help on using the changeset viewer.