From 00ab483723751d93241a27f0c639ec972bc08541 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Mar 14 2018 06:46:59 +0000 Subject: fix crash on batch rendering with unc path (#1866) --- diff --git a/toonz/sources/common/tsystem/uncpath.cpp b/toonz/sources/common/tsystem/uncpath.cpp index c19c49b..0ae7e22 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.