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

    r1497 r1498  
    55
    66  Copyright (c) 1993-98 M. Kimes
    7   Copyright (c) 2004, 2008 Steven H.Levine
     7  Copyright (c) 2004, 2010 Steven H.Levine
    88
    99  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    2222  15 Nov 09 GKY Add check for attempt to open zero byte file (avoids MMPM trying to play them)
    2323  21 Dec 09 GKY Added CheckExecutibleFlags to streamline code in command.c assoc.c & cmdline.c
     24  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    2425
    2526**************************************************************************************/
     
    234235  bstripcr(szEnviroment);
    235236  if (*szEnviroment)
    236     PrfWriteProfileString(fmprof, FM3Str, temp->pszCmdLine, szEnviroment);
     237    PrfWriteProfileString(fmprof, (CHAR *) FM3Str, temp->pszCmdLine, szEnviroment);
    237238  pszDisplayStr = xmallocz((CCHMAXPATH * 2) + MaxComLineStrg + 6,
    238239                           pszSrcFile, __LINE__);
     
    638639            size = sizeof(env) - 1;
    639640            if (PrfQueryProfileData(fmprof,
    640                                     FM3Str, info->pszCmdLine, env, &size) && *env)
     641                                    (CHAR *) FM3Str, info->pszCmdLine, env, &size) && *env)
    641642              WinSetDlgItemText(hwnd, ASS_ENVIRON, env);
    642643            else
     
    883884        }
    884885        bstrip(temp.mask);
    885         PrfWriteProfileData(fmprof, FM3Str, temp.mask, NULL, 0L);
     886        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, temp.mask, NULL, 0L);
    886887        if (kill_association(&temp)) {
    887888          x = (SHORT) WinSendDlgItemMsg(hwnd,
     
    989990        }
    990991        bstrip(temp.mask);
    991         PrfWriteProfileData(fmprof, FM3Str, temp.mask, NULL, 0L);
     992        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, temp.mask, NULL, 0L);
    992993        if (!kill_association(&temp))
    993994          Runtime_Error(pszSrcFile, __LINE__, "kill_association");
Note: See TracChangeset for help on using the changeset viewer.