[HostsModuleInterface]Check correct event for error (#28412)

This commit is contained in:
Stefan Markovic
2023-09-12 11:45:29 +02:00
committed by GitHub
parent 184c618398
commit 63975600f1

View File

@@ -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());