diff options
Diffstat (limited to 'playtreeparser.c')
-rw-r--r-- | playtreeparser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/playtreeparser.c b/playtreeparser.c index ea263ec7f8..a56bdbf6a1 100644 --- a/playtreeparser.c +++ b/playtreeparser.c @@ -633,10 +633,12 @@ play_tree_add_basepath(play_tree_t* pt, char* bp) { continue; // if the path begins with \ then prepend drive letter to it. if (pt->files[i][0] == '\\') { + if (pt->files[i][1] == '\\') + continue; pt->files[i] = (char*)realloc(pt->files[i],2+fl+1); memmove(pt->files[i] + 2,pt->files[i],fl+1); memcpy(pt->files[i],bp,2); - return; + continue; } pt->files[i] = (char*)realloc(pt->files[i],bl+fl+1); memmove(pt->files[i] + bl,pt->files[i],fl+1); |