1
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 04:44:32 +01:00

Handle windows path separator in filesel menu.

Fixes at least partially bug 


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20521 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-10-29 21:10:59 +00:00
parent b7546da924
commit 9774de4be4

@ -299,6 +299,10 @@ static void read_cmd(menu_t* menu,int cmd) {
if(l <= 1) break;
mpriv->dir[l-1] = '\0';
slash = strrchr(mpriv->dir,'/');
#if defined(__MINGW32__) || defined(__CYGWIN__)
if (!slash)
slash = strrchr(mpriv->dir,'\\');
#endif
if(!slash) break;
slash[1] = '\0';
p = strdup(mpriv->dir);