You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We builded it with Visual Studio compiler and with definition UNICODE.
The library was builded successfully.
But late we noticed invalid error messages in our log.
Their cause is function WindowsTcpSocketClient::GetErrorMessage().
The function call FormatMessage() and return its result as std::string.
But in our situation FormatMessage() returns utf-16 string and your code casts it to char*.
I suggest you 2 correct cases.
First case returns ANSI string.
Second case returns UTF8 string.
Choose more appropriate case.
We face to problem with your library.
We builded it with Visual Studio compiler and with definition UNICODE.
The library was builded successfully.
But late we noticed invalid error messages in our log.
Their cause is function WindowsTcpSocketClient::GetErrorMessage().
The function call FormatMessage() and return its result as std::string.
But in our situation FormatMessage() returns utf-16 string and your code casts it to char*.
I suggest you 2 correct cases.
First case returns ANSI string.
Second case returns UTF8 string.
Choose more appropriate case.
The text was updated successfully, but these errors were encountered: