From 3b62dc6ee7e9eeff9bd8a13214032563017c7f93 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 28 Jul 2023 21:44:03 +0200 Subject: [PATCH] (Windows) Fixed an issue where wide string conversions were not done correctly --- es-core/src/utils/StringUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/utils/StringUtil.cpp b/es-core/src/utils/StringUtil.cpp index 3b6510f3b..e6a053183 100644 --- a/es-core/src/utils/StringUtil.cpp +++ b/es-core/src/utils/StringUtil.cpp @@ -621,7 +621,7 @@ namespace Utils std::wstring stringToWideString(const std::string& stringArg) { - std::wstring_convert, wchar_t> stringConverter; + std::wstring_convert, wchar_t> stringConverter; try { return stringConverter.from_bytes(stringArg); } @@ -636,7 +636,7 @@ namespace Utils std::string wideStringToString(const std::wstring& stringArg) { - std::wstring_convert, wchar_t> stringConverter; + std::wstring_convert, wchar_t> stringConverter; try { return stringConverter.to_bytes(stringArg); }