Changeset 1498 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Jan 18, 2010, 1:57:01 AM (16 years ago)
Author:
Gregg Young
Message:

Changes to get FM2 to compile with the latest watcom 1.9 beta (mostly type casts of CHAR CONSTANT * to CHAR *). Changes to get the environment settings working everywhere again (broken by the change that moved commands to the INI); Added an environment size variable (set to 2048 which was the largest I found hard coded). Still need to find everywhere the environment size is set and use this variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1486 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2009 Steven H. Levine
     9  Copyright (c) 2001, 2010 Steven H. Levine
    1010
    1111  16 Oct 02 SHL Handle large partitions
     
    8080                before scan completes
    8181  22 Nov 09 GKY Add LVM.EXE to partition submenu
     82  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    8283
    8384***********************************************************************/
     
    14961497                                       0);      /* Index to DRAGITEM */
    14971498          if (DrgVerifyRMF(pDItem,      /* Check valid rendering */
    1498                            DRM_OS2FILE, /* mechanisms and data */
    1499                            NULL) || DrgVerifyRMF(pDItem, DRM_FM2ARCMEMBER, DRF_FM2ARCHIVE)) {   /* formats */
     1499                           (CHAR *) DRM_OS2FILE,        /* mechanisms and data */
     1500                           NULL) || DrgVerifyRMF(pDItem, (CHAR *) DRM_FM2ARCMEMBER,
     1501                                                 (CHAR *) DRF_FM2ARCHIVE)) {    /* formats */
    15001502            DrgFreeDraginfo(pDInfo);    /* Free DRAGINFO */
    15011503            if (!pci || (INT) pci == -1)
     
    15341536            if (hwndStatus2) {
    15351537              WinSetWindowText(hwndStatus2, (IsRoot(pci->pszFileName)) ?
    1536                                GetPString(IDS_DRAGROOTTEXT) :
     1538                               (CHAR *) GetPString(IDS_DRAGROOTTEXT) :
    15371539                               (pci->attrFile & FILE_DIRECTORY) ?
    1538                                GetPString(IDS_DRAGDIRTEXT) :
    1539                                GetPString(IDS_DRAGFILETEXT));
     1540                               (CHAR *) GetPString(IDS_DRAGDIRTEXT) :
     1541                               (CHAR *) GetPString(IDS_DRAGFILETEXT));
    15401542            }
    15411543            DoFileDrag(hwnd, dcd->hwndObject, mp2, NULL, NULL, TRUE);
     
    19101912            DosBeep(50, 100);
    19111913          if (hwndStatus)
    1912             WinSetWindowText(hwndStatus, GetPString(IDS_RESCANSUGTEXT));
     1914            WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_RESCANSUGTEXT));
    19131915          DosReleaseMutexSem(hmtFillingTreeCnr);
    19141916          return 0;
     
    30423044      WinQueryWindowPos(dcd->hwndFrame, &swp);
    30433045      if (!(swp.fl & (SWP_HIDE | SWP_MINIMIZE | SWP_MAXIMIZE)))
    3044         WinStoreWindowPos(FM2Str, "VTreeWindowPos", dcd->hwndFrame);
     3046        WinStoreWindowPos((CHAR *) FM2Str, "VTreeWindowPos", dcd->hwndFrame);
    30453047    }
    30463048    break;
     
    31603162                                 WS_VISIBLE,
    31613163                                 &FrameFlags,
    3162                                  WC_TREECONTAINER,
     3164                                 (CHAR *) WC_TREECONTAINER,
    31633165                                 NULL,
    31643166                                 WS_VISIBLE | fwsAnimate,
     
    31903192      if (*(ULONG *) realappname == FM3UL) {
    31913193        if (!WinCreateWindow(hwndFrame,
    3192                              WC_TREEOPENBUTTON,
     3194                             (CHAR *) WC_TREEOPENBUTTON,
    31933195                             "#303",
    31943196                             WS_VISIBLE | BS_PUSHBUTTON | BS_NOPOINTERFOCUS | BS_BITMAP,
     
    32143216      else {
    32153217        if (!WinCreateWindow(hwndFrame,
    3216                              WC_TREESTATUS,
    3217                              GetPString(IDS_YOUAREHERETEXT),
     3218                             (CHAR *) WC_TREESTATUS,
     3219                             (CHAR *) GetPString(IDS_YOUAREHERETEXT),
    32183220                             WS_VISIBLE | SS_TEXT | DT_LEFT | DT_VCENTER,
    32193221                             swp.x + 4 + WinQuerySysValue(HWND_DESKTOP,
     
    32753277        }
    32763278        else {
    3277           WinSetWindowText(hwndFrame, GetPString(IDS_TREETEXT));
     3279          WinSetWindowText(hwndFrame, (CHAR *) GetPString(IDS_TREETEXT));
    32783280          WinSetWindowText(WinWindowFromID(hwndFrame, FID_TITLEBAR),
    3279                            GetPString(IDS_TREETEXT));
     3281                           (CHAR *) GetPString(IDS_TREETEXT));
    32803282        }
    32813283        dcd->oldproc = WinSubclassWindow(dcd->hwndCnr, TreeCnrWndProc);
Note: See TracChangeset for help on using the changeset viewer.