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

    r1395 r1398  
    9999               GetPString(IDS_ENVPATHERRORTEXT),
    100100               (dummy->help) ? "HELP" : "BOOKSHELF",
    101                (dummy->help) ? ".HLP" : ".INF");
     101               (dummy->help) ? PCSZ_DOTHLP : PCSZ_DOTINF);
    102102        goto NoEnv;
    103103      }
     
    194194                if (!PrfQueryProfileData(fmprof, FM3Str, key, holdenv, &size)) {
    195195                  Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
    196                             "PrfQueryProfileData");
     196                            PCSZ_PRFQUERYPROFILEDATA);
    197197                  free(holdenv);
    198198                }
     
    259259        WinSetPresParam(WinWindowFromID(hwnd, VINF_LISTBOX),
    260260                        PP_FONTNAMESIZE,
    261                         strlen("10.System Monospaced") + 1,
    262                         "10.System Monospaced");
     261                        strlen(FNT_10SYSTEMMONOTEXT) + 1,
     262                        FNT_10SYSTEMMONOTEXT);
    263263      }
    264264      WinSetWindowText(hwnd, GetPString(IDS_VIEWHELPFILESTEXT));
Note: See TracChangeset for help on using the changeset viewer.