fixed gui_listdir

master
steffen 13 years ago
parent 804e195cd4
commit 28f2b6b2ca

@ -89,7 +89,7 @@ void gui_sdir_clicklist (int nr) {
char *seperate;
d_printf ("selected nr:%d '%s'", nr, nr < wsd_listmax ? wsd_list[nr] : "nr >= wsd_listmax");
if (nr >= wsd_listmax && wsd_list[nr] == NULL) return;
if (nr >= wsd_listmax || wsd_list[nr] == NULL) return;
if (strcmp (wsd_list[nr], ".") == 0) return;
if (strcmp (wsd_list[nr], "..") == 0) {

Loading…
Cancel
Save