mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 15:27:50 +08:00
ca79ebe4a4
* [clickhouse-cpp] Update to 2.2.1 * add feature openssl * Fix patch * use absl::int128 * Fix patch * version * fix UWP * version
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";
|
|
}
|