From 325ac0a368170d265c6780d21ddd41a988766daa Mon Sep 17 00:00:00 2001 From: Arnar Bjarni Arnarson Date: Sun, 8 Jan 2023 23:40:25 +0000 Subject: [PATCH] Fix type of event id in win_eventlog_sink --- include/spdlog/sinks/win_eventlog_sink.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/sinks/win_eventlog_sink.h b/include/spdlog/sinks/win_eventlog_sink.h index 2f2aacb5..def4b135 100644 --- a/include/spdlog/sinks/win_eventlog_sink.h +++ b/include/spdlog/sinks/win_eventlog_sink.h @@ -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) {