Fix issue #1250
This commit is contained in:
		@@ -140,6 +140,10 @@ void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::print_range_(const memory_buf_t
 | 
				
			|||||||
template<typename ConsoleMutex>
 | 
					template<typename ConsoleMutex>
 | 
				
			||||||
void SPDLOG_INLINE wincolor_sink<ConsoleMutex>::write_to_file_(const memory_buf_t &formatted)
 | 
					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());
 | 
					    auto size = static_cast<DWORD>(formatted.size());
 | 
				
			||||||
    if (size == 0)
 | 
					    if (size == 0)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user