Changeset 1402 for trunk/dll/undel.c


Ignore:
Timestamp:
Mar 14, 2009, 6:17:59 PM (16 years ago)
Author:
Gregg Young
Message:

Remove variable aurgs from docopy & unlinkf (not used); Move more strings to PCSZs and string table; Move PCSZs to compile time initialization; Fix hang on startup caused by a drive scan and a dircnr scan trying to update a drive in the tree at the same time (related to the "treeswitch options); Code cleanup mainly removal of old printfs, SayMsgs, DbgMsg and unneeded %s.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/undel.c

    r1398 r1402  
    1717  16 JUL 08 GKY Use TMP directory for temp files
    1818  10 Dec 08 SHL Integrate exception handler support
     19  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
     20  08 Mar 09 GKY Additional strings move to PCSZs
    1921
    2022***********************************************************************/
     
    8991    WinSendDlgItemMsg(hwnd, UNDEL_LISTBOX, LM_DELETEALL, MPVOID, MPVOID);
    9092    BldFullPathName(szTempFile, pTmpDir, "$UDELETE.#$#");
    91     unlinkf("%s", szTempFile);
     93    unlinkf(szTempFile);
    9294    fp = xfopen(szTempFile, "w", pszSrcFile, __LINE__);
    9395    if (!fp) {
     
    141143            strcat(s, GetPString(IDS_ASKABOUTUNDELETEHELPTEXT));
    142144            temp = saymsg(MB_YESNOCANCEL | MB_ICONEXCLAMATION,
    143                           hwnd, GetPString(IDS_ERRORTEXT), "%s", s);
     145                          hwnd, GetPString(IDS_ERRORTEXT), s);
    144146            if (temp == MBID_YES)
    145147              runemf2(BACKGROUND | INVISIBLE | SEPARATE | WINDOWED,
Note: See TracChangeset for help on using the changeset viewer.