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

    r1400 r1402  
    182182                     MPFROMLONG(1));
    183183    if (!pci) {
    184       Win_Error(hwndCnr, HWND_DESKTOP, pszSrcFile, __LINE__, "CM_ALLOCRECORD");
     184      Win_Error(hwndCnr, HWND_DESKTOP, pszSrcFile, __LINE__, PCSZ_CM_ALLOCRECORD);
    185185      xfree(pffbArray, pszSrcFile, __LINE__);
    186186      return FALSE;
     
    894894            CHAR s[33];
    895895
    896             strcpy(s, "ICON");
     896            strcpy(s, PCSZ_ICON);
    897897            PrfQueryProfileData(fmprof, appname, "DirflWindowAttr",
    898898                                (PVOID) & flWindowAttr, &size);
    899899            if (flWindowAttr & CV_DETAIL) {
    900900              if (IsRoot(szFileName))
    901                 strcpy(s, "TREE");
     901                strcpy(s, PCSZ_TREE);
    902902              else
    903                 strcpy(s, "DETAILS");
     903                strcpy(s, Details);
    904904            }
    905905            OpenObject(szFileName, s, hwnd);
Note: See TracChangeset for help on using the changeset viewer.