[MPlayer-cvslog] r18933 - trunk/playtreeparser.c

reimar subversion at mplayerhq.hu
Fri Jul 7 13:17:27 CEST 2006


Author: reimar
Date: Fri Jul  7 13:17:27 2006
New Revision: 18933

Modified:
   trunk/playtreeparser.c

Log:
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.


Modified: trunk/playtreeparser.c
==============================================================================
--- trunk/playtreeparser.c	(original)
+++ trunk/playtreeparser.c	Fri Jul  7 13:17:27 2006
@@ -633,10 +633,12 @@
       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);



More information about the MPlayer-cvslog mailing list