diff playtreeparser.c @ 13305:90ffe76b5b25

Don't prepend basepath to a full unix path. ( 10l to Joey. )
author al
date Fri, 10 Sep 2004 20:53:22 +0000
parents 047bbb973011
children 0586a1ffba44
line wrap: on
line diff
--- a/playtreeparser.c	Fri Sep 10 17:54:17 2004 +0000
+++ b/playtreeparser.c	Fri Sep 10 20:53:22 2004 +0000
@@ -624,8 +624,9 @@
 
   for(i = 0 ; pt->files[i] != NULL ; i++) {
     fl = strlen(pt->files[i]);
-    // if we find url:// or X:\ at the beginning, don't mangle it.
-    if(fl <= 0 || strstr(pt->files[i],"://") || strstr(pt->files[i],":\\") == pt->files[i] + 1)
+    // if we find a full unix path, url:// or X:\ at the beginning,
+    // don't mangle it.
+    if(fl <= 0 || strstr(pt->files[i],"://") || (strstr(pt->files[i],":\\") == pt->files[i] + 1) || (pt->files[i][0] == '/') )
       continue;
     // if the path begins with \ then prepend drive letter to it.
     if (pt->files[i][0] == '\\') {