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

    r1544 r1554  
    2020  08 Mar 09 GKY Additional strings move to PCSZs
    2121  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
     22  20 Nov 10 GKY Check that pTmpDir IsValid and recreate if not found; Fixes hangs caused
     23                by temp file creation failures.
    2224
    2325***********************************************************************/
     
    9294    IncrThreadUsage();
    9395    WinSendDlgItemMsg(hwnd, UNDEL_LISTBOX, LM_DELETEALL, MPVOID, MPVOID);
     96    if (pTmpDir && !IsValidDir(pTmpDir))
     97      DosCreateDir(pTmpDir, 0);
    9498    BldFullPathName(szTempFile, pTmpDir, "$UDELETE.#$#");
    9599    unlinkf(szTempFile);
Note: See TracChangeset for help on using the changeset viewer.