diff --git a/toonz/sources/common/tsystem/uncpath.cpp b/toonz/sources/common/tsystem/uncpath.cpp index c19c49ba..0ae7e22f 100644 --- a/toonz/sources/common/tsystem/uncpath.cpp +++ b/toonz/sources/common/tsystem/uncpath.cpp @@ -46,7 +46,7 @@ TFilePath TSystem::toUNC(const TFilePath &fp) { switch (dwResult) { case NO_ERROR: - return TFilePath(::to_string(puni->lpUniversalName)); + return TFilePath(::to_string(std::wstring(puni->lpUniversalName))); case ERROR_NOT_CONNECTED: // The network connection does not exists.