fix crash on batch rendering with unc path (#1866)

This commit is contained in:
shun-iwasawa 2018-03-14 15:46:59 +09:00 committed by masafumi-inoue
parent 388550d11d
commit 00ab483723

View file

@ -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.