diff --git a/include/spdlog/sinks/wincolor_sink.h b/include/spdlog/sinks/wincolor_sink.h index 402fa121..4567a2e3 100644 --- a/include/spdlog/sinks/wincolor_sink.h +++ b/include/spdlog/sinks/wincolor_sink.h @@ -104,7 +104,7 @@ private: void _print_range(const details::log_msg &msg, size_t start, size_t end) { DWORD size = static_cast(end - start); - WriteConsoleA(out_handle_, msg.formatted.data() + start, size, nullptr, nullptr); + WriteFile(out_handle_, msg.formatted.data() + start, size, nullptr, nullptr); } };