cvs -z4 -q diff -u sg_path.cxx (in directory I:\FlightGear\cvs\SimGear\simgear\misc\) Index: sg_path.cxx =================================================================== RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/misc/sg_path.cxx,v retrieving revision 1.17 diff -u -r1.17 sg_path.cxx --- sg_path.cxx 18 Dec 2005 09:37:37 -0000 1.17 +++ sg_path.cxx 18 Dec 2005 15:05:32 -0000 @@ -199,6 +199,7 @@ string path = dirlist[0]; string_list path_elements; string element; + bool absolute = !path.empty() && path[0] == sgDirPathSep; while ( path.size() ) { size_t p = path.find( sgDirPathSep ); if ( p != string::npos ) { @@ -213,9 +214,10 @@ } int i = 1; - SGPath dir = path_elements[0]; -#ifdef WIN32 - if ( path_elements.size() >= 2 ) { + SGPath dir = absolute ? string( 1, sgDirPathSep ) : ""; + dir.concat( path_elements[0] ); +#ifdef _MSC_VER + if ( dir.str().find(':') != string::npos && path_elements.size() >= 2 ) { dir.append( path_elements[1] ); i = 2; }