Merge pull request #1444 from Crunkle/v1.x

Fix Windows event log sink
This commit is contained in:
Gabi Melman 2020-02-17 21:37:27 +02:00 committed by GitHub
commit ea5e7182ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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