Changeset 1498 for trunk/dll/collect.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/collect.c

    r1497 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2003, 2009 Steven H. Levine
     9  Copyright (c) 2003, 2010 Steven H. Levine
    1010
    1111  15 Oct 02 MK Baseline
     
    7070  13 Jul 09 GKY Fixed double free of memory buffer in UM_COLLECTFROMFILE
    7171  15 Sep 09 SHL Use UM_GREP when passing pathname
     72  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    7273
    7374***********************************************************************/
     
    653654      if (!hwndStatus) {
    654655        WinSetWindowText(WinWindowFromID(dcd->hwndClient, DIR_SELECTED),
    655                          GetPString(IDS_COLLECTINGTEXT));
     656                         (CHAR *) GetPString(IDS_COLLECTINGTEXT));
    656657      }
    657658      else {
    658659        if (WinQueryFocus(HWND_DESKTOP) == dcd->hwndCnr)
    659           WinSetWindowText(hwndStatus, GetPString(IDS_COLLECTINGTEXT));
     660          WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_COLLECTINGTEXT));
    660661      }
    661662
     
    12661267      }
    12671268      if (dcd->amextracted)
    1268         WinSetWindowText(hwndStatus2, GetPString(IDS_INSEEKSCANTEXT));  // Say working
     1269        WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_INSEEKSCANTEXT)); // Say working
    12691270      WinSendMsg(hwnd, UM_RESCAN, MPVOID, MPVOID);
    12701271    }
     
    13691370          }
    13701371          if (dcd->amextracted && hwndStatus2 && !fStatus2Used)
    1371             WinSetWindowText(hwndStatus2, GetPString(IDS_INSEEKSCANTEXT));      // Say working
     1372            WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_INSEEKSCANTEXT));     // Say working
    13721373        }
    13731374        else {
    13741375          if (hwndStatus2) {
    13751376            if (dcd->amextracted)
    1376               WinSetWindowText(hwndStatus2, GetPString(IDS_INSEEKSCANTEXT));    // Say working
     1377              WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_INSEEKSCANTEXT));   // Say working
    13771378            else
    13781379              WinSetWindowText(hwndStatus2, NullStr);
     
    24752476                                       0);      /* Index to DRAGITEM */
    24762477          if (DrgVerifyRMF(pDItem,      /* Check valid rendering */
    2477                            DRM_OS2FILE, /* mechanisms and data */
     2478                           (CHAR *) DRM_OS2FILE,        /* mechanisms and data */
    24782479                           NULL)) {
    24792480            DrgFreeDraginfo(pDInfo);    /* Free DRAGINFO */
     
    25102511              if (hwndStatus2)
    25112512                WinSetWindowText(hwndStatus2,
    2512                                  GetPString(IDS_DRAGFILEOBJTEXT));
     2513                                 (CHAR *) GetPString(IDS_DRAGFILEOBJTEXT));
    25132514              if (DoFileDrag(hwnd, dcd->hwndObject, mp2, NULL, NULL, TRUE)) {
    25142515                if ((fUnHilite && wasemphasized) || dcd->ulItemsToUnHilite)
     
    29932994                                 WS_VISIBLE,
    29942995                                 &FrameFlags,
    2995                                  WC_COLLECTOR,
     2996                                 (CHAR *) WC_COLLECTOR,
    29962997                                 NULL,
    29972998                                 WS_VISIBLE | fwsAnimate,
     
    30473048        Collector = dcd->hwndCnr;
    30483049        WinSetWindowPtr(dcd->hwndCnr, QWL_USER, (PVOID) dcd);
    3049         WinSetWindowText(hwndFrame, GetPString(IDS_COLLECTORTITLETEXT));
     3050        WinSetWindowText(hwndFrame, (CHAR *) GetPString(IDS_COLLECTORTITLETEXT));
    30503051        if (FrameFlags & FCF_MENU) {
    30513052          PFNWP oldmenuproc;
Note: See TracChangeset for help on using the changeset viewer.