Unverified Commit a51b4856 authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Merge pull request #1210 from jimmyorourke/patch-1

Windows color file sink: Use WriteFile rather than WriteConsole
parents 139c0d13 3a13e76b
Pipeline #351 failed with stages
...@@ -104,7 +104,7 @@ private: ...@@ -104,7 +104,7 @@ private:
void _print_range(const details::log_msg &msg, size_t start, size_t end) void _print_range(const details::log_msg &msg, size_t start, size_t end)
{ {
DWORD size = static_cast<DWORD>(end - start); DWORD size = static_cast<DWORD>(end - start);
WriteConsoleA(out_handle_, msg.formatted.data() + start, size, nullptr, nullptr); WriteFile(out_handle_, msg.formatted.data() + start, size, nullptr, nullptr);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment