Add a . to an empty path to make a relative path, before the initial /
authorArt Yerkes <art.yerkes@gmail.com>
Thu, 3 Feb 2005 15:43:51 +0000 (15:43 +0000)
committerArt Yerkes <art.yerkes@gmail.com>
Thu, 3 Feb 2005 15:43:51 +0000 (15:43 +0000)
is added.

svn path=/branches/xmlbuildsystem/; revision=13393

reactos/tools/rbuild/XML.cpp

index e95ecff..4950aef 100644 (file)
@@ -187,7 +187,7 @@ Path::RelativeFromWorkingDirectory ( const string& path )
 #ifdef WIN32\r
                if ( i ) out += "/";\r
 #else\r
-               out += "/";\r
+               out += out.size() ? "/" : "./";\r
 #endif\r
                out += vout[i];\r
        }\r