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
This commit is contained in:
reimar 2006-07-07 11:17:27 +00:00
parent 6d8ee8674d
commit e300b2d8c7
1 changed files with 3 additions and 1 deletions

View File

@ -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);