# HG changeset patch # User ib # Date 1319109161 0 # Node ID 3a0badbaab9c1d386996c095518327f78cc97022 # Parent 98f6d11e2ff3bd5d16c5072fa003c221405a52c0 Prevent adding a base path wrongly. X:\ at the beginning should only be considered an absolute path in case of DOS style paths. diff -r 98f6d11e2ff3 -r 3a0badbaab9c playtreeparser.c --- a/playtreeparser.c Thu Oct 20 10:41:31 2011 +0000 +++ b/playtreeparser.c Thu Oct 20 11:12:41 2011 +0000 @@ -835,7 +835,11 @@ fl = strlen(pt->files[i]); // 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] == '/') ) + if(fl <= 0 || strstr(pt->files[i],"://") || (pt->files[i][0] == '/') +#if HAVE_DOS_PATHS + || (strstr(pt->files[i],":\\") == pt->files[i] + 1) +#endif + ) continue; // if the path begins with \ then prepend drive letter to it. if (pt->files[i][0] == '\\') {