We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69325bd + c3c1aab commit 52bdf94Copy full SHA for 52bdf94
1 file changed
clickhouse/base/socket.cpp
@@ -27,7 +27,7 @@ char const* windowsErrorCategory::name() const noexcept {
27
28
std::string windowsErrorCategory::message(int c) const {
29
char error[UINT8_MAX];
30
- auto len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, static_cast<DWORD>(c), 0, error, sizeof(error), nullptr);
+ auto len = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, static_cast<DWORD>(c), 0, error, sizeof(error), nullptr);
31
if (len == 0) {
32
return "unknown";
33
}
0 commit comments