Changeset 1117 for trunk/dll/command.c


Ignore:
Timestamp:
Aug 24, 2008, 8:31:35 PM (17 years ago)
Author:
Gregg Young
Message:

Check disk free space before writing data files to prevent traps from being on a full disk (ticket 154)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/command.c

    r1104 r1117  
    398398  info = cmdhead;
    399399  BldFullPathName(s, pFM2SaveDirectory, "COMMANDS.DAT");
     400  if (CheckDriveSpaceAvail(s, ullDATFileSpaceNeeded, 0) == 2)
     401    return; //already gave error msg
    400402  fp = xfopen(s, "w", pszSrcFile, __LINE__);
    401403  if (fp) {
Note: See TracChangeset for help on using the changeset viewer.