# HG changeset patch # User reimar # Date 1162156259 0 # Node ID 543f6e8deeb67849e2e928abda6347a349547ebf # Parent 27fb949fffa94e2c61a88d6735e952b4ab0b3fff Handle windows path separator in filesel menu. Fixes at least partially bug #494 diff -r 27fb949fffa9 -r 543f6e8deeb6 libmenu/menu_filesel.c --- 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);