diff options
author | 2006-10-29 21:10:59 +0000 | |
---|---|---|
committer | 2006-10-29 21:10:59 +0000 | |
commit | 9774de4be487f9821e09fe77fe83da5b5fe932d7 (patch) | |
tree | 4a63a0d61b80c169382b0377b913af1619235944 | |
parent | b7546da92401cb1a158fc317b3374a0fd3e43e68 (diff) |
Handle windows path separator in filesel menu.
Fixes at least partially bug #494
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20521 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmenu/menu_filesel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmenu/menu_filesel.c b/libmenu/menu_filesel.c index 7db788f60d..90d77f0c71 100644 --- a/libmenu/menu_filesel.c +++ b/libmenu/menu_filesel.c @@ -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); |