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

    r1345 r1398  
    352352  pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
    353353  if (pszCmdLine) {
    354     BldFullPathName(pszCmdLine, pFM2SaveDirectory, "COMMANDS.DAT");
     354    BldFullPathName(pszCmdLine, pFM2SaveDirectory, PCSZ_COMMANDSDAT);
    355355    fp = _fsopen(pszCmdLine, "r", SH_DENYWR);
    356356    if (fp) {
     
    416416    return;
    417417  info = cmdhead;
    418   BldFullPathName(s, pFM2SaveDirectory, "COMMANDS.DAT");
     418  BldFullPathName(s, pFM2SaveDirectory, PCSZ_COMMANDSDAT);
    419419  if (CheckDriveSpaceAvail(s, ullDATFileSpaceNeeded, 1) == 2)
    420420    return; //already gave error msg
Note: See TracChangeset for help on using the changeset viewer.