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

    r1400 r1402  
    6565  08 Mar 09 GKY Additional strings move to PCSZs in init.c
    6666  08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code
     67  14 Mar 09 GKY Prevent execution of UM_SHOWME while drive scan is occuring
    6768
    6869***********************************************************************/
     
    624625      Fortify_BecomeOwner(mp1);
    625626#     endif
     627      if (StubbyScanCount != 0) { //prevent treeswitch from hanging fm2 during startup GKY 3-14-09
     628        DosSleep(50);
     629        PostMsg(hwndTree, UM_SHOWME, mp1, MPVOID);
     630      }
    626631      dcd = INSTDATA(hwnd);
    627632      if (dcd) {
     
    14641469          if (!DrgAccessDraginfo(pDInfo)) {
    14651470            Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
    1466                       "DrgAccessDraginfo");
     1471                      PCSZ_DRGACCESSDRAGINFO);
    14671472            return (MRFROM2SHORT(DOR_NODROP, 0));       /* Drop not valid */
    14681473          }
     
    15931598              if (li->type == DID_ERROR)
    15941599                  Win_Error(hwnd, HWND_DESKTOP, pszSrcFile, __LINE__,
    1595                             "Drag & Drop Dialog");
     1600                            GetPString(IDS_DRAGDROPDIALOGTEXT));
    15961601              if (!li->type) {
    15971602                FreeListInfo(li);
     
    20882093              CHAR s[33];
    20892094
    2090               strcpy(s, "ICON");
     2095              strcpy(s, PCSZ_ICON);
    20912096              PrfQueryProfileData(fmprof,
    20922097                                  appname,
     
    20952100              if (flWindowAttr & CV_DETAIL) {
    20962101                if (IsRoot(pci->pszFileName))
    2097                   strcpy(s, "TREE");
     2102                  strcpy(s, PCSZ_TREE);
    20982103                else
    2099                   strcpy(s, "DETAILS");
     2104                  strcpy(s, Details);
    21002105              }
    21012106              OpenObject(pci->pszFileName, s, dcd->hwndFrame);
Note: See TracChangeset for help on using the changeset viewer.