Mercurial > mplayer.hg
changeset 20505:543f6e8deeb6
Handle windows path separator in filesel menu.
Fixes at least partially bug #494
author | reimar |
---|---|
date | Sun, 29 Oct 2006 21:10:59 +0000 |
parents | 27fb949fffa9 |
children | 9324e1a02a8b |
files | libmenu/menu_filesel.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmenu/menu_filesel.c Sun Oct 29 18:16:00 2006 +0000 +++ b/libmenu/menu_filesel.c Sun Oct 29 21:10:59 2006 +0000 @@ -299,6 +299,10 @@ 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);