Changeset 5380 for trunk/src/kernel32/oslibmisc.cpp
- Timestamp:
- Mar 26, 2001, 12:35:37 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/oslibmisc.cpp
r4235 r5380 1 /* $Id: oslibmisc.cpp,v 1.1 1 2000-09-12 04:27:45 birdExp $ */1 /* $Id: oslibmisc.cpp,v 1.12 2001-03-25 22:35:37 sandervl Exp $ */ 2 2 /* 3 3 * Misc OS/2 util. procedures … … 234 234 /* @@@PH what does this function do ? Strip the path from a FQFN name ? */ 235 235 char *pszFilename; 236 237 pszFilename = strrchr(path, '\\'); /* find rightmost slash */ 238 if (pszFilename != NULL) 236 char *pszFilename1; 237 238 pszFilename = strrchr(path, '\\'); /* find rightmost backslash */ 239 pszFilename1 = strrchr(path, '/'); /* find rightmost slash */ 240 if(pszFilename > pszFilename1 && pszFilename != NULL) 239 241 return (++pszFilename); /* return pointer to next character */ 240 242 241 pszFilename = strrchr(path, '/'); /* find rightmost slash */ 242 if (pszFilename != NULL) 243 return (++pszFilename); /* return pointer to next character */ 243 if (pszFilename1 != NULL) 244 return (++pszFilename1); /* return pointer to next character */ 244 245 245 246 return (path); /* default return value */
Note:
See TracChangeset
for help on using the changeset viewer.