[host] fix copy-paste error

This commit is contained in:
Geoffrey McRae 2023-11-11 20:47:36 +11:00
parent 084ebe5035
commit 3bad3837b4

View File

@ -179,7 +179,7 @@ void mouseHook_install(MouseHookFn callback)
if (!mouseHook.updateEvent)
{
mouseHook.updateEvent = CreateEventA(NULL, FALSE, FALSE, NULL);
if (!mouseHook.event)
if (!mouseHook.updateEvent)
{
DEBUG_WINERROR("Failed to create mouse hook update event",
GetLastError());