Changeset 1498 for trunk/dll/srchpath.c
- Timestamp:
- Jan 18, 2010, 1:57:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/srchpath.c
r1438 r1498 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 20 08Steven H. Levine9 Copyright (c) 2003, 2010 Steven H. Levine 10 10 11 11 22 Apr 07 GKY Add RunFM2Util to find and run apps from the FM2Utilities … … 13 13 23 Aug 07 SHL Comments 14 14 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 *. 15 16 16 17 ***********************************************************************/ … … 48 49 49 50 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); 52 53 if (rc != 0) { 53 54 if (rc != 2){ … … 58 59 else { 59 60 rc = DosSearchPath(0, "UTILS;..\\FM2Utils", 60 appname, (PBYTE)fbuf, CCHMAXPATH - 1);61 (CHAR *) appname, (PBYTE)fbuf, CCHMAXPATH - 1); 61 62 if (rc != 0 && rc != 2){ 62 63 Dos_Error(MB_ENTER, rc, HWND_DESKTOP, pszSrcFile, __LINE__, … … 123 124 if (DosSearchPath(SEARCH_IGNORENETERRS | SEARCH_ENVIRONMENT | 124 125 SEARCH_CUR_DIRECTORY, 125 pathvar,filename, (PBYTE)fbuf, CCHMAXPATH - 1))126 (CHAR *) pathvar, (CHAR *) filename, (PBYTE)fbuf, CCHMAXPATH - 1)) 126 127 *fbuf = 0; 127 128 return fbuf;
Note:
See TracChangeset
for help on using the changeset viewer.