aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2013-01-28 02:48:01 +0200
committernotaz2013-01-28 02:48:01 +0200
commit1ae8c5a80945e4e8d549e0bd763ad1fd132e888e (patch)
tree589a8779cd7fde585a2bc1017f4e322ab8fb64d0 /frontend
parent22bbabf6807d704b1a8c9231d55f139e3e00b8dd (diff)
downloadpcsx_rearmed-1ae8c5a80945e4e8d549e0bd763ad1fd132e888e.tar.gz
pcsx_rearmed-1ae8c5a80945e4e8d549e0bd763ad1fd132e888e.tar.bz2
pcsx_rearmed-1ae8c5a80945e4e8d549e0bd763ad1fd132e888e.zip
frontend: path handling fix
Diffstat (limited to 'frontend')
-rw-r--r--frontend/menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/menu.c b/frontend/menu.c
index 3a6ae9c..9ca5f95 100644
--- a/frontend/menu.c
+++ b/frontend/menu.c
@@ -251,7 +251,9 @@ static int optional_cdimg_filter(struct dirent **namelist, int count,
p = strrchr(buf2, '/');
if (p == NULL)
p = strrchr(buf2, '\\');
- if (p == NULL)
+ if (p != NULL)
+ p++;
+ else
p = buf2;
snprintf(buf, sizeof(buf), "%s/%s", basedir, p);