From 00ab483723751d93241a27f0c639ec972bc08541 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Wed, 14 Mar 2018 15:46:59 +0900 Subject: [PATCH] fix crash on batch rendering with unc path (#1866) --- toonz/sources/common/tsystem/uncpath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.