summaryrefslogtreecommitdiffstats
path: root/playtreeparser.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-07 11:17:27 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-07 11:17:27 +0000
commite300b2d8c7b6c3f406ef9f248cd6e775387617eb (patch)
treec125cbbe87b874da6b1e4469763e687fcbf9bbd3 /playtreeparser.c
parent6d8ee8674d83c3965f4ebbe6988bf6974a7ade04 (diff)
downloadmpv-e300b2d8c7b6c3f406ef9f248cd6e775387617eb.tar.bz2
mpv-e300b2d8c7b6c3f406ef9f248cd6e775387617eb.tar.xz
relative-to-absolute path fixes: Do not prepend drive letter to \\ paths.
Do not exit after prepending drive letter to first file, process other files as well. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18933 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'playtreeparser.c')
-rw-r--r--playtreeparser.c4
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);