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

    r1438 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004, 2008 Steven H.Levine
     9  Copyright (c) 2004, 2010 Steven H.Levine
    1010
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    2121  08 Mar 09 GKY Additional strings move to PCSZs in init.c
    2222  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
     23  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    2324
    2425***********************************************************************/
     
    192193              key = "HLPPaths";
    193194            repeating = TRUE;
    194             if (PrfQueryProfileSize(fmprof, FM3Str, key, &size) && size) {
     195            if (PrfQueryProfileSize(fmprof, (CHAR *) FM3Str, key, &size) && size) {
    195196              holdenv = xmalloc(size + 2, pszSrcFile, __LINE__);
    196197              if (holdenv) {
    197                 if (!PrfQueryProfileData(fmprof, FM3Str, key, holdenv, &size)) {
     198                if (!PrfQueryProfileData(fmprof, (CHAR *) FM3Str, key, holdenv, &size)) {
    198199                  Win_Error(hwnd, hwnd, pszSrcFile, __LINE__,
    199200                            PCSZ_PRFQUERYPROFILEDATA);
     
    265266                        (PVOID) FNT_10SYSTEMMONOTEXT);
    266267      }
    267       WinSetWindowText(hwnd, GetPString(IDS_VIEWHELPFILESTEXT));
     268      WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_VIEWHELPFILESTEXT));
    268269      WinShowWindow(WinWindowFromID(hwnd, VINF_SRCH), FALSE);
    269270      WinShowWindow(WinWindowFromID(hwnd, VINF_FILTER), FALSE);
     
    520521        bstrip(szBuffer);
    521522        PrfWriteProfileData(fmprof,
    522                             FM3Str,
     523                            (CHAR *) FM3Str,
    523524                            key,
    524525                            (*szBuffer) ? szBuffer : NULL, strlen(szBuffer));
Note: See TracChangeset for help on using the changeset viewer.