vcpkg/ports/clickhouse-cpp/fix-uwp.patch
Thomas1664 ca79ebe4a4
[clickhouse-cpp] Update to 2.2.1 (#27250)
* [clickhouse-cpp] Update to 2.2.1

* add feature openssl

* Fix patch

* use absl::int128

* Fix patch

* version

* fix UWP

* version
2022-10-18 18:38:59 -07:00

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";
}