Changeset 1402 for trunk/dll/worker.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/worker.c

    r1398 r1402  
    3939                to prevent duplicate directory names in tree following a copy before initial scan.
    4040  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
     41  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
     42  08 Mar 09 GKY Additional strings move to PCSZs
    4143
    4244***********************************************************************/
     
    584586                  switch (wk->li->type) {
    585587                  case IDM_OPENICON:
    586                     s = "ICON";
     588                    s = (PSZ) PCSZ_ICON;
    587589                    break;
    588590                  case IDM_OPENDETAILS:
    589                     s = "DETAILS";
     591                    s = (PSZ) Details;
    590592                    break;
    591593                  case IDM_OPENTREE:
    592                     s = "TREE";
     594                    s = (PSZ) PCSZ_TREE;
    593595                    break;
    594596                  case IDM_OPENSETTINGS:
    595                     s = Settings;
     597                    s = (PSZ) Settings;
    596598                    break;
    597599                  default:
    598                     s = Default;
     600                    s = (PSZ) Default;
    599601                    break;
    600602                  }
     
    673675                             wk->hwndFrame,
    674676                             GetPString(IDS_ERRORTEXT),
    675                              "%s", GetPString(IDS_NOTWRITENOTARGETTEXT));
     677                             GetPString(IDS_NOTWRITENOTARGETTEXT));
    676678                      goto RetryPath;
    677679                    }
     
    733735                    existed = (IsFile(newname) != -1);
    734736                    isnewer = IsNewer(wk->li->list[x], newname);
    735                     /*
    736                        {
    737                        char temp[CCHMAXPATH * 3];
    738                        sprintf(temp,"Target: %s\rSource: %s\rOverold: %lu\rOvernew: %lu\rIsNewer: %lu\rExisted: %lu",newname,wk->li->list[x],overold,overnew,isnewer,existed);
    739                        saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,temp);
    740                        }
    741                      */
    742737                    if (existed && wk->li->type != IDM_RENAME && dontask) {
    743738                      if (!overold && !overnew)
     
    832827                    if (fRealIdle)
    833828                      priority_idle();
    834                     rc = docopyf(type, wk->li->list[x], "%s", newname);
     829                    rc = docopyf(type, wk->li->list[x], newname);
    835830                    if (fResetVerify) {
    836831                      DosSetVerify(fVerify);
     
    888883                                    wk->hwndFrame,
    889884                                    GetPString(IDS_DISKFULLTEXT),
    890                                     "%s", GetPString(IDS_ANOTHERDISKTEXT));
     885                                    GetPString(IDS_ANOTHERDISKTEXT));
    891886                        if (rc == MBID_RETRY)
    892887                          goto Retry;
     
    10381033                        wk->hwndCnr,
    10391034                        UM_UPDATERECORDLIST, MPFROMP(files), MPVOID);
    1040            // DbgMsg(pszSrcFile, __LINE__, "UM_UPDATERECORD %s", *files);
    10411035            FreeList(files);
    10421036          }
Note: See TracChangeset for help on using the changeset viewer.