Changeset 1554 for trunk/dll/killproc.c


Ignore:
Timestamp:
Nov 21, 2010, 12:35:35 AM (15 years ago)
Author:
Gregg Young
Message:

Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused by temp file creation failures. (Ticket 440)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/killproc.c

    r1544 r1554  
    2727                aren't user settable; realappname should be used for setting applicable to
    2828                one or more miniapp but not to FM/2
    29   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     29  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10).
     30                Mostly cast CHAR CONSTANT * as CHAR *.
     31  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
     32                by temp file creation failures.
    3033
    3134***********************************************************************/
     
    6366#include "fortify.h"
    6467#include "excputil.h"                   // xbeginthread
     68#include "valid.h"                      // IsValidDir
    6569
    6670// Data definitions
     
    267271
    268272  WinSendDlgItemMsg(hwnd, KILL_LISTBOX, LM_DELETEALL, MPVOID, MPVOID);
     273  if (pTmpDir && !IsValidDir(pTmpDir))
     274    DosCreateDir(pTmpDir, 0);
    269275  BldFullPathName(s, pTmpDir, "$PSTAT#$.#$#");
    270276  unlinkf(s);
Note: See TracChangeset for help on using the changeset viewer.