diff --git a/src/megacmdcommonutils.cpp b/src/megacmdcommonutils.cpp index 79bbc857..3bed3a7b 100644 --- a/src/megacmdcommonutils.cpp +++ b/src/megacmdcommonutils.cpp @@ -1645,7 +1645,7 @@ std::string WindowsDirectories::configDir() { if (PathAppend(szPath, TEXT(".megaCmd"))) { - MegaApi::utf16ToUtf8(szPath, lstrlen(szPath), &folder); + utf16ToUtf8(szPath, lstrlen(szPath), &folder); } } } diff --git a/src/megacmdcommonutils.h b/src/megacmdcommonutils.h index 8f069915..de274ddf 100644 --- a/src/megacmdcommonutils.h +++ b/src/megacmdcommonutils.h @@ -407,11 +407,11 @@ class WindowsDirectories : public PlatformDirectories { std::string runtimeDirPath() override { - return ConfigDirPath(); + return configDirPath(); } std::string cacheDirPath() override { - return ConfigDirPath(); + return configDirPath(); } std::string configDirPath() override; };