Changeset 1554 for trunk/dll/worker.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/worker.c

    r1544 r1554  
    4444  26 Jul 09 GKY Fix failure of containers to update when Tree container isn't open in FM2 lite
    4545  13 Dec 09 GKY Attempt to fix container update issues with FM/2 lite
    46   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     46  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10).
     47                Mostly cast CHAR CONSTANT * as CHAR *.
     48  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
     49                by temp file creation failures.
    4750
    4851***********************************************************************/
     
    11711174                CHAR *modew = "w";
    11721175
    1173                 BldFullPathName(szTempFile, pTmpDir, PCSZ_FM2PLAYTEMP);
     1176                if (pTmpDir && !IsValidDir(pTmpDir))
     1177                  DosCreateDir(pTmpDir, 0);
     1178                BldFullPathName(szTempFile, pTmpDir, PCSZ_FM2PLAYTEMP);
    11741179                fp = xfopen(szTempFile, modew, pszSrcFile, __LINE__, FALSE);
    11751180                if (fp) {
Note: See TracChangeset for help on using the changeset viewer.