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

    r1321 r1398  
    164164    free_associations();
    165165  assloaded = TRUE;
    166   BldFullPathName(mask, pFM2SaveDirectory, "ASSOC.DAT");
     166  BldFullPathName(mask, pFM2SaveDirectory, PCSZ_ASSOCDAT);
    167167  fp = _fsopen(mask, "r", SH_DENYWR);
    168168  pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__);
     
    286286  }
    287287#endif
    288   BldFullPathName(s, pFM2SaveDirectory, "ASSOC.DAT");
     288  BldFullPathName(s, pFM2SaveDirectory, PCSZ_ASSOCDAT);
    289289  if (CheckDriveSpaceAvail(s, ullDATFileSpaceNeeded, 1) == 2)
    290290    return; //already gave error msg
Note: See TracChangeset for help on using the changeset viewer.