Ignore:
Timestamp:
Oct 22, 2012, 2:48:13 PM (13 years ago)
Author:
dmik
Message:

pe: A better fix for adding .EXE than r22016.

It will only add .EXE if there is no (any) extention already specified,
regardless of whether the path is present or not. This matches the
behavior of CMD.EXE on both Windows and OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/peldr/helpers.c

    r21942 r22028  
    7575}
    7676
     77const char *str_find_last_char(const char *s, int c)
     78{
     79    int len = strlen (s);
     80    const char *e = s + len;
     81    while (e >= s && *e != c)
     82        e--;
     83    return e < s ? s + len : e;
     84}
     85
    7786//
    7887// BEGIN: taken from _ras.cpp
Note: See TracChangeset for help on using the changeset viewer.