Fix Win32 event log sink

This commit is contained in:
Crunkle 2020-02-17 17:15:43 +00:00
parent c9e094d9fc
commit d38d53d9dd

View File

@ -219,7 +219,7 @@ protected:
using namespace internal; using namespace internal;
memory_buf_t formatted; memory_buf_t formatted;
formatter_->format(msg, formatted); base_sink<Mutex>::formatter_->format(msg, formatted);
formatted.push_back('\0'); formatted.push_back('\0');
LPCSTR lp_str = static_cast<LPCSTR>(formatted.data()); LPCSTR lp_str = static_cast<LPCSTR>(formatted.data());