Commit 0d9e472b authored by filatov's avatar filatov
Browse files

fix lastpathelement win32 behaviour

parent f7ee984c
......@@ -239,8 +239,10 @@ char * cstraload(char ** p, const pchar_t * path)
const pchar_t * cstrlastpathelement(const pchar_t * str)
{
const pchar_t * p = pchar_rchr(str, '/');
const pchar_t * p2 = pchar_rchr(str, '/');
#ifdef WIN32
const pchar_t * p2 = pchar_rchr(str, '\\');
if(p<p2)p=p2;
#endif
else if(p == NULL) p = str;
return p;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment