Fixed hierachicalPath on windows

This commit is contained in:
Martin Baliet 2019-05-09 21:18:04 +02:00
parent 1c7b225449
commit 60ef980f43

View File

@ -150,7 +150,7 @@ std::string GetCachePath(std::string src) {
std::string ret = std::string ret =
g_config->cache.directory + (src[0] == '/' ? src.substr(1) : src); g_config->cache.directory + (src[0] == '/' ? src.substr(1) : src);
#ifdef _WIN32 #ifdef _WIN32
std::replace(ret.begin(), ret.end(), ':', '@'); std::replace(ret.begin()+2, ret.end(), ':', '@');
#endif #endif
return ret; return ret;
} }