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

    r1545 r1554  
    8484  15 Apr 10 JBS Ticket 422: Stop hang when open archive gets deleted or moved
    8585  23 Oct 10 GKY Add ForwardslashToBackslash function to streamline code
     86  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
     87                by temp file creation failures.
    8688
    8789***********************************************************************/
     
    20212023                CHAR *modew = "w";
    20222024
     2025                if (pTmpDir && !IsValidDir(pTmpDir))
     2026                  DosCreateDir(pTmpDir, 0);
    20232027                BldFullPathName(szTempFile, pTmpDir, PCSZ_FM2PLAYTEMP);
    20242028                fp = xfopen(szTempFile, modew, pszSrcFile, __LINE__, FALSE);
     
    36503654        dcd->id = id;
    36513655        dcd->type = ARC_FRAME;
    3652         if (!pTmpDir)
    3653           strcpy(dcd->workdir, pFM2SaveDirectory);
     3656        if (pTmpDir && !IsValidDir(pTmpDir))
     3657          DosCreateDir(pTmpDir, 0);
    36543658        MakeTempName(dcd->workdir, ArcTempRoot, 2);
    36553659        strcpy(dcd->arcname, fullname);
Note: See TracChangeset for help on using the changeset viewer.