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

    r1400 r1402  
    237237              CommaFmtULL(szUnits, sizeof(szUnits),
    238238                          (ULONGLONG) fsa.cUnitAvail, ' ');
    239               sprintf(s,
    240                       "%s, %s, %s %s%s",
    241                       szMB, szKB, szUnits,
    242                       GetPString(IDS_UNITTEXT), &"s"[fsa.cUnitAvail == 1L]);
     239              sprintf(s, "%s, %s, %s %s%s",
     240                      szMB, szKB, szUnits,
     241                      GetPString(IDS_UNITTEXT), &"s"[fsa.cUnitAvail == 1L]);
    243242              WinSetDlgItemText(hwnd, INFO_AVAILABLE, s);
    244243              sprintf(s,
    245                       GetPString(IDS_SECTORSTEXT),
    246                       fsa.cbSector,
    247                       fsa.cSectorUnit, &"s"[fsa.cSectorUnit == 1L]);
     244                      GetPString(IDS_SECTORSTEXT),
     245                      fsa.cbSector,
     246                      fsa.cSectorUnit, &"s"[fsa.cSectorUnit == 1L]);
    248247              WinSetDlgItemText(hwnd, INFO_ALLOCUNITS, s);
    249248
     
    275274            else {
    276275              sprintf(FileSystem,
    277                       GetPString(IDS_CANTQUERYVOLTEXT),
    278                       toupper(*pszFileName));
     276                      GetPString(IDS_CANTQUERYVOLTEXT),
     277                      toupper(*pszFileName));
    279278              Notify(FileSystem);
    280279              WinDismissDlg(hwnd, 0);
     
    283282          else {
    284283            sprintf(FileSystem,
    285                     GetPString(IDS_CANTQUERYALLOCTEXT),
    286                     toupper(*pszFileName));
     284                    GetPString(IDS_CANTQUERYALLOCTEXT),
     285                    toupper(*pszFileName));
    287286            Notify(FileSystem);
    288287            WinDismissDlg(hwnd, 0);
     
    292291          FlagMsg(*pszFileName, s);
    293292          sprintf(FileSystem,
    294                   GetPString(IDS_DRIVEINACCESSIBLETEXT),
    295                   toupper(*pszFileName), s);
     293                  GetPString(IDS_DRIVEINACCESSIBLETEXT),
     294                  toupper(*pszFileName), s);
    296295          Notify(FileSystem);
    297296          WinDismissDlg(hwnd, 0);
Note: See TracChangeset for help on using the changeset viewer.