1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Error message formatting

This commit is contained in:
WerWolv 2024-02-04 20:59:33 +01:00
parent 77baf6f522
commit 1c28d4f610

View File

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