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

fix lastpathelement win32 behaviour

parent f7ee984c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
}