From 63975600f11e63736df6f090d01c1e277e6bd17f Mon Sep 17 00:00:00 2001 From: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:45:29 +0200 Subject: [PATCH] [HostsModuleInterface]Check correct event for error (#28412) --- src/modules/Hosts/HostsModuleInterface/dllmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Hosts/HostsModuleInterface/dllmain.cpp b/src/modules/Hosts/HostsModuleInterface/dllmain.cpp index 14f2c0b0b3..e971bc3f77 100644 --- a/src/modules/Hosts/HostsModuleInterface/dllmain.cpp +++ b/src/modules/Hosts/HostsModuleInterface/dllmain.cpp @@ -132,7 +132,7 @@ public: } m_hShowAdminEvent = CreateDefaultEvent(CommonSharedConstants::SHOW_HOSTS_ADMIN_EVENT); - if (!m_hShowEvent) + if (!m_hShowAdminEvent) { Logger::error(L"Failed to create show hosts admin event"); auto message = get_last_error_message(GetLastError());