OpenToonz - An open-source full-featured 2D animation creation software
C
fix crash on batch rendering with unc path (#1866)
shun-iwasawa00ab48372375
diff --git a/toonz/sources/common/tsystem/uncpath.cpp b/toonz/sources/common/tsystem/uncpath.cppindex c19c49baa..0ae7e22f5 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.