From 1c28d4f61074b2a128cf48e94fc2f697394523f5 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 4 Feb 2024 20:59:33 +0100 Subject: [PATCH] fix: Error message formatting --- lib/libimhex/source/helpers/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/source/helpers/utils.cpp b/lib/libimhex/source/helpers/utils.cpp index d1c9d7813..0e5bcc248 100644 --- a/lib/libimhex/source/helpers/utils.cpp +++ b/lib/libimhex/source/helpers/utils.cpp @@ -754,7 +754,7 @@ namespace hex { auto message = std::system_category().message(error); #if defined(OS_WINDOWS) - return hex::utf16ToUtf8(hex::utf8ToUtf16(message)); + return hex::utf16ToUtf8({ message.begin(), message.end() }); #else return message; #endif