Fix type of event id in win_eventlog_sink (#2598)

Co-authored-by: Arnar Bjarni Arnarson <arnar@menandmice.com>
This commit is contained in:
Arnar Bjarni Arnarson 2023-01-09 23:25:01 +00:00 committed by GitHub
parent 85a009ad64
commit 0b9ff5210a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ private:
HANDLE hEventLog_{NULL};
internal::sid_t current_user_sid_;
std::string source_;
WORD event_id_;
DWORD event_id_;
HANDLE event_log_handle()
{
@ -258,7 +258,7 @@ protected:
void flush_() override {}
public:
win_eventlog_sink(std::string const &source, WORD event_id = 1000 /* according to mscoree.dll */)
win_eventlog_sink(std::string const &source, DWORD event_id = 1000 /* according to mscoree.dll */)
: source_(source)
, event_id_(event_id)
{