Ignore:
Timestamp:
Aug 18, 1999, 7:18:01 PM (26 years ago)
Author:
sandervl
Message:

PE loader changes

File:
1 edited

Legend:

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

    r120 r550  
    1 /* $Id: nameid.cpp,v 1.5 1999-06-19 10:54:42 sandervl Exp $ */
     1/* $Id: nameid.cpp,v 1.6 1999-08-18 17:18:00 sandervl Exp $ */
    22
    3 /*
    4  *
    5  * Project Odin Software License can be found in LICENSE.TXT
    6  *
    7  */
    83/*
    94 * Resource id to name id conversion procedures
    105 *
    116 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
     7 *
     8 *
     9 * Project Odin Software License can be found in LICENSE.TXT
    1210 *
    1311 */
     
    2725#include <winexe.h>
    2826#include "os2util.h"
    29 
    30 void UpCase(char *mixedcase);
    3127
    3228/******************************************************************************/
     
    5753//******************************************************************************
    5854//******************************************************************************
    59 void SYSTEM EXPORT UpCase(char *mixedcase)
     55char *StripPath(char *path)
    6056{
    61  int i;
    62 
    63   for(i=0;i<strlen(mixedcase);i++) {
    64         if(mixedcase[i] >= 'a' && mixedcase[i] <= 'z') {
    65                 mixedcase[i] += 'A' - 'a';
    66         }
    67   }
     57  /* @@@PH what does this function do ? Strip the path from a FQFN name ? */
     58  char *pszFilename;
     59 
     60  pszFilename = strrchr(path, '\\');                 /* find rightmost slash */
     61  if (pszFilename != NULL)
     62    return (pszFilename++);              /* return pointer to next character */
     63 
     64  pszFilename = strrchr(path, '/');                  /* find rightmost slash */
     65  if (pszFilename != NULL)
     66    return (pszFilename++);              /* return pointer to next character */
     67 
     68  return (path);                                     /* default return value */
    6869}
    69 /******************************************************************************/
    70 /******************************************************************************/
     70//******************************************************************************
     71//******************************************************************************
    7172ULONG GetOS2ModuleHandle(ULONG hmod)
    7273{
Note: See TracChangeset for help on using the changeset viewer.