changeset 18928:586777f09b1b

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.
author reimar
date Fri, 07 Jul 2006 11:17:27 +0000
parents 278eaf3ed5d8
children 13fd66346cd5
files playtreeparser.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Fri Jul 07 11:14:25 2006 +0000
+++ b/playtreeparser.c	Fri Jul 07 11:17:27 2006 +0000
@@ -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);