mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 08:17:50 +08:00
14 lines
635 B
Diff
14 lines
635 B
Diff
|
diff --git a/clickhouse/base/socket.cpp b/clickhouse/base/socket.cpp
|
||
|
index c6dc920..43bbd02 100644
|
||
|
--- a/clickhouse/base/socket.cpp
|
||
|
+++ b/clickhouse/base/socket.cpp
|
||
|
@@ -27,7 +27,7 @@ char const* windowsErrorCategory::name() const noexcept {
|
||
|
|
||
|
std::string windowsErrorCategory::message(int c) const {
|
||
|
char error[UINT8_MAX];
|
||
|
- 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);
|
||
|
if (len == 0) {
|
||
|
return "unknown";
|
||
|
}
|