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

    r1544 r1554  
    5151                aren't user settable; realappname should be used for setting applicable to
    5252                one or more miniapp but not to FM/2
    53   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     53  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10).
     54                Mostly cast CHAR CONSTANT * as CHAR *.
     55  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
     56                by temp file creation failures.
    5457
    5558***********************************************************************/
     
    957960        CHAR *modea = "a+";
    958961
    959         if (pTmpDir)
    960           strcpy(szFileName, pTmpDir);
    961         else
     962        if (pTmpDir && !IsValidDir(pTmpDir))
     963          DosCreateDir(pTmpDir, 0);
     964        //if (pTmpDir)
     965        //  strcpy(szFileName, pTmpDir);
     966        else if (!pTmpDir)
    962967          strcpy(szFileName, pFM2SaveDirectory);
    963968        sprintf(&szFileName[strlen(szFileName)], "%s%csizes.Rpt", PCSZ_BACKSLASH,
Note: See TracChangeset for help on using the changeset viewer.