Changeset 1073 for trunk/dll/killproc.c


Ignore:
Timestamp:
Jul 18, 2008, 2:30:20 AM (17 years ago)
Author:
Gregg Young
Message:

Fm2 uses TMP/TEMP directory if set for temporary files and directories. Ticket 20

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/killproc.c

    r1063 r1073  
    3737#include "errutil.h"                    // Dos_Error...
    3838#include "strutil.h"                    // GetPString
     39#include "pathutil.h"                   // BldFullPathName
    3940#include "fm3dll.h"
    4041#include "fortify.h"
     
    236237
    237238  WinSendDlgItemMsg(hwnd, KILL_LISTBOX, LM_DELETEALL, MPVOID, MPVOID);
    238   strcpy(s, "$PSTAT#$.#$#");
     239  if (fUseTmp)
     240    BldFullPathName(s, pTmpDir, "$PSTAT#$.#$#");
     241  else
     242    strcpy(s, "$PSTAT#$.#$#");
    239243  unlinkf("%s", s);
    240244  fp = fopen(s, "w");
     
    303307  }
    304308Abort:
    305   DosForceDelete("$PSTAT#$.#$#");
     309  if (fUseTmp) {
     310    CHAR szTempFile[CCHMAXPATH];
     311
     312    BldFullPathName(szTempFile, pTmpDir, "$PSTAT#$.#$#");
     313    DosForceDelete(szTempFile);
     314  }
     315  else
     316    DosForceDelete("$PSTAT#$.#$#");
    306317  PostMsg(hwnd, UM_CONTAINER_FILLED, MPVOID, MPVOID);
    307318  WinDestroyMsgQueue(thmq);
Note: See TracChangeset for help on using the changeset viewer.