Commit 95c19876 authored by Gabi Melman's avatar Gabi Melman

Skip log in wincolor sink if out_handle_ is null

parent 5efccfa5
...@@ -58,7 +58,7 @@ void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::set_color(level::level_enum leve ...@@ -58,7 +58,7 @@ void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::set_color(level::level_enum leve
template<typename ConsoleMutex> template<typename ConsoleMutex>
void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::log(const details::log_msg &msg) void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::log(const details::log_msg &msg)
{ {
if (out_handle_ == INVALID_HANDLE_VALUE) if (out_handle_ == nullptr || out_handle_ == INVALID_HANDLE_VALUE)
{ {
return; return;
} }
......
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