Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

simulator: Fix browsing into secondary drive on multidrive targets

Change-Id: I4e993acdedb516f0ae4fc230a62cb00de8dcef86

+5 -2
+5 -2
uisimulator/common/filesystem-sim.c
··· 307 307 #ifdef HAVE_MULTIVOLUME 308 308 if (level != 1) 309 309 break; /* Volume spec only valid @ root level */ 310 + if (p[-1] != PATH_SEPCH) 311 + break; 310 312 311 313 const char *next; 312 - volume = path_strip_volume(p, &next, true); 314 + volume = path_strip_volume(p-1, &next, true); 315 + 313 316 if (volume == ROOT_VOLUME) 314 317 volume = 0; /* FIXME: root no longer implies volume 0 */ 315 318 ··· 831 834 char volname[VOL_MAX_LEN + 1]; 832 835 get_volume_name(volume, volname); 833 836 834 - if (path_append(tmpbuf, PA_SEP_HARD, volname, sizeof (volname)) 837 + if (path_append(tmpbuf, PA_SEP_HARD, volname, sizeof (tmpbuf)) 835 838 >= sizeof (volname)) 836 839 return -1; 837 840 #endif /* HAVE_MULTIVOLUME */