[MPlayer-cvslog] r20521 - trunk/libmenu/menu_filesel.c

reimar subversion at mplayerhq.hu
Sun Oct 29 22:11:00 CET 2006


Author: reimar
Date: Sun Oct 29 22:10:59 2006
New Revision: 20521

Modified:
   trunk/libmenu/menu_filesel.c

Log:
Handle windows font separator. Fixes at least partially bug #494


Modified: trunk/libmenu/menu_filesel.c
==============================================================================
--- trunk/libmenu/menu_filesel.c	(original)
+++ trunk/libmenu/menu_filesel.c	Sun Oct 29 22:10:59 2006
@@ -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);



More information about the MPlayer-cvslog mailing list