mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-03 02:37:14 +02:00
Fix for paths starting with // or \\ in windows
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user