From e300b2d8c7b6c3f406ef9f248cd6e775387617eb Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 7 Jul 2006 11:17:27 +0000 Subject: [PATCH] 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 --- playtreeparser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);