Changeset 1761 for trunk/dll/pathutil.c
- Timestamp:
- Mar 22, 2014, 12:29:52 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/pathutil.c
r1750 r1761 14 14 15 Oct 08 GKY Fix NormalizeCmdLine to check all 5 executable extensions when no extension provided; 15 15 use searchapath to check for existance of file types not checked by DosQAppType; 16 16 close DosFind. 17 17 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code 18 18 12 Jul 09 GKY Add xDosQueryAppType and xDosAlloc... to allow FM/2 to load in high memory … … 20 20 17 Sep 11 GKY Fix commandline quoting issues 21 21 01 Mar 14 JBS Ticket #524: Made "searchapath" thread-safe. Function names and signatures were changed. 22 So calls to these functions had to be changed. 22 So calls to these functions had to be changed. 23 21 Mar 14 SHL Add IsAbsolutePath 23 24 24 25 ***********************************************************************/ … … 26 27 #include <stdlib.h> 27 28 #include <string.h> 29 #include <ctype.h> 28 30 29 31 #define INCL_WIN … … 140 142 } 141 143 return pszQuotedFileName; 144 } 145 146 /** 147 * Return TRUE if absolute path name 148 * @param pszPathName points to path name 149 * @returns TRUE if absolute path, with or without drive letter 150 * @note Odd inputs return FALSE 151 * 152 */ 153 154 BOOL IsAbsolutePath(PCSZ pszPathName) 155 { 156 return pszPathName && 157 pszPathName[0] && 158 ((pszPathName[0] == '\\' || pszPathName[0] == '/') || 159 (toupper(pszPathName[0]) >= 'A' && 160 toupper(pszPathName[0]) <= 'Z' && 161 pszPathName[1] && 162 pszPathName[1] == ':' && 163 (pszPathName[2] == '\\' || pszPathName[2] == '/'))); 142 164 } 143 165 … … 211 233 pszCmdLine_); 212 234 if (!offsetexe && !offsetcom) { 213 214 235 if (!SearchPathForFile(PCSZ_PATH, szCmdLine, NULL)) 236 ret = 0; 215 237 } 216 238 else … … 410 432 #pragma alloc_text(PATHUTIL,BldQuotedFullPathName) 411 433 #pragma alloc_text(PATHUTIL,NormalizeCmdLine) 434 #pragma alloc_text(PATHUTIL,IsAbsolutePath)
Note:
See TracChangeset
for help on using the changeset viewer.