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

    r1545 r1554  
    3838  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    3939  23 Oct 10 GKY Add ForwardslashToBackslash function to streamline code
     40  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
     41                by temp file creation failures.
    4042
    4143***********************************************************************/
     
    11781180        /* make copies of new inis */
    11791181        *tempuserini = 0;
    1180         *tempsysini = 0;
     1182        *tempsysini = 0;
     1183        if (pTmpDir && !IsValidDir(pTmpDir))
     1184          DosCreateDir(pTmpDir, 0);
    11811185        BldFullPathName(tempuserini, pTmpDir ? pTmpDir : pFM2SaveDirectory, "TEMPUSER.INI");
    11821186        rc = DosCopy(userini, tempuserini, DCPY_EXISTING);
     
    11891193                    GetPString(IDS_COMPCOPYFAILEDTEXT), userini, tempuserini);
    11901194          break;
    1191         }
     1195        }
     1196        if (pTmpDir && !IsValidDir(pTmpDir))
     1197          DosCreateDir(pTmpDir, 0);
    11921198        BldFullPathName(tempsysini, pTmpDir ? pTmpDir : pFM2SaveDirectory, "TEMPSYS.INI");
    11931199        rc = DosCopy(sysini, tempsysini, DCPY_EXISTING);
Note: See TracChangeset for help on using the changeset viewer.