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

    r1400 r1402  
    6363  07 Feb 09 GKY Add *DateFormat functions to format dates based on locale
    6464  08 Mar 09 GKY Renamed commafmt.h i18nutil.h
     65  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
     66  08 Mar 09 GKY Additional strings move to PCSZs in init.c & String Table
    6567
    6668***********************************************************************/
     
    524526          switch (cmp->action) {
    525527          case IDM_DELETE:
    526             if (!unlinkf("%s", pciS->pszFileName)) {
     528            if (!unlinkf(pciS->pszFileName)) {
    527529              WinSendMsg(hwndCnrS, CM_SETRECORDEMPHASIS, MPFROMP(pciS),
    528530                         MPFROM2SHORT(FALSE, CRA_SELECTED));
     
    582584                  MassMkdir(hwndMain, szDirName);
    583585              }
    584               rc = docopyf(MOVE, pciS->pszFileName, "%s", szNewName);
     586              rc = docopyf(MOVE, pciS->pszFileName, szNewName);
    585587              if (fResetVerify) {
    586588                DosSetVerify(fVerify);
     
    683685                  MassMkdir(hwndMain, szDirName);
    684686              }
    685               rc = docopyf(COPY, pciS->pszFileName, "%s", szNewName);
     687              rc = docopyf(COPY, pciS->pszFileName, szNewName);
    686688              if (fResetVerify) {
    687689                DosSetVerify(fVerify);
     
    14871489                     HWND_DESKTOP,
    14881490                     GetPString(IDS_WARNINGTEXT),
    1489                      "One or more of your files has a full path name that exceeds the OS/2 maximum");
     1491                     GetPString(IDS_LENGTHEXCEEDSMAXPATHTEXT));
    14901492            }
    14911493            return;
     
    18101812                               MPFROMLONG(recsNeeded));
    18111813        if (!pcilFirst) {
    1812           Win_Error(hwndLeft, cmp->hwnd, pszSrcFile, __LINE__, "CM_ALLOCRECORD %u failed",
    1813                     recsNeeded);
     1814          Win_Error(hwndLeft, cmp->hwnd, pszSrcFile, __LINE__, PCSZ_CM_ALLOCRECORD);
    18141815          recsNeeded = 0;
    18151816        }
     
    18201821                               MPFROMLONG(recsNeeded));
    18211822        if (!pcirFirst) {
    1822           Win_Error(hwndRight, cmp->hwnd, pszSrcFile, __LINE__, "CM_ALLOCRECORD %u failed",
    1823                     recsNeeded);
     1823          Win_Error(hwndRight, cmp->hwnd, pszSrcFile, __LINE__, PCSZ_CM_ALLOCRECORD);
    18241824          recsNeeded = 0;
    18251825          FreeCnrItemList(hwndLeft, pcilFirst);
Note: See TracChangeset for help on using the changeset viewer.