From: notaz Date: Mon, 28 Jan 2013 00:48:01 +0000 (+0200) Subject: frontend: path handling fix X-Git-Tag: r19~31 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ae8c5a80945e4e8d549e0bd763ad1fd132e888e;p=pcsx_rearmed.git frontend: path handling fix --- diff --git a/frontend/menu.c b/frontend/menu.c index 3a6ae9c5..9ca5f95e 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);