Fix for paths starting with // or \\ in windows

This commit is contained in:
emb
2015-08-03 22:36:17 -05:00
parent b4f1cb259e
commit af820bffb3

View File

@@ -305,9 +305,11 @@ std::string Configuration::convertToAbsolutePath(std::string prefix, std::string
} }
// check to see if it is already an absolute path // check to see if it is already an absolute path
if((first != Utils::pathSeparator) && #ifdef WIN32
//(first != '.') && if((first != '\\') && (first != '/') && (second != ':'))
(second != ':')) #else
if(first != Utils::pathSeparator)
#endif
{ {
path = Utils::combinePath(prefix, path); path = Utils::combinePath(prefix, path);
} }