2
0
mirror of https://github.com/gabime/spdlog.git synced 2024-12-27 08:20:53 +08:00
This commit is contained in:
gabime 2019-09-28 11:39:06 +03:00
parent 188afe20f9
commit 274558c430

View File

@ -140,6 +140,10 @@ void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::print_range_(const memory_buf_t
template<typename ConsoleMutex>
void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::write_to_file_(const memory_buf_t &formatted)
{
if(out_handle_ == nullptr) // no console and no file redirect
{
return;
}
auto size = static_cast<DWORD>(formatted.size());
if (size == 0)
{