Skip to content

Commit

Permalink
Merge pull request #230 from Thomas1664/fix-uwp-build
Browse files Browse the repository at this point in the history
Use `FormatMessageA`
  • Loading branch information
Enmk authored Oct 21, 2022
2 parents 69325bd + c3c1aab commit 52bdf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clickhouse/base/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit 52bdf94

Please sign in to comment.