Ignore:
Timestamp:
Mar 26, 2001, 12:35:37 AM (24 years ago)
Author:
sandervl
Message:

OSLibStripPath bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibmisc.cpp

    r4235 r5380  
    1 /* $Id: oslibmisc.cpp,v 1.11 2000-09-12 04:27:45 bird Exp $ */
     1/* $Id: oslibmisc.cpp,v 1.12 2001-03-25 22:35:37 sandervl Exp $ */
    22/*
    33 * Misc OS/2 util. procedures
     
    234234  /* @@@PH what does this function do ? Strip the path from a FQFN name ? */
    235235  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)
    239241    return (++pszFilename);              /* return pointer to next character */
    240242
    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 */
    244245
    245246  return (path);                                     /* default return value */
Note: See TracChangeset for help on using the changeset viewer.