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

    r1438 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2003, 2008 Steven H. Levine
     9  Copyright (c) 2003, 2010 Steven H. Levine
    1010
    1111  22 Apr 07 GKY Add RunFM2Util to find and run apps from the FM2Utilities
     
    1313  23 Aug 07 SHL Comments
    1414  04 Oct 08 JBS Make searchapath non-static
     15  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    1516
    1617***********************************************************************/
     
    4849
    4950    rc = DosSearchPath(SEARCH_IGNORENETERRS |SEARCH_ENVIRONMENT |
    50                        SEARCH_CUR_DIRECTORY, PCSZ_PATH,
    51                        appname, (PBYTE)fbuf, CCHMAXPATH - 1);
     51                       SEARCH_CUR_DIRECTORY, (CHAR *) PCSZ_PATH,
     52                       (CHAR *) appname, (PBYTE)fbuf, CCHMAXPATH - 1);
    5253      if (rc != 0) {
    5354        if (rc != 2){
     
    5859        else {
    5960        rc = DosSearchPath(0, "UTILS;..\\FM2Utils",
    60                            appname, (PBYTE)fbuf, CCHMAXPATH - 1);
     61                           (CHAR *) appname, (PBYTE)fbuf, CCHMAXPATH - 1);
    6162            if (rc != 0 && rc != 2){
    6263              Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__,
     
    123124  if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT |
    124125                    SEARCH_CUR_DIRECTORY,
    125                     pathvar, filename, (PBYTE)fbuf, CCHMAXPATH - 1))
     126                    (CHAR *) pathvar, (CHAR *) filename, (PBYTE)fbuf, CCHMAXPATH - 1))
    126127    *fbuf = 0;
    127128  return fbuf;
Note: See TracChangeset for help on using the changeset viewer.