From 3bad3837b4ba250c7b49eef3bceea5f686ab20f3 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Nov 2023 20:47:36 +1100 Subject: [PATCH] [host] fix copy-paste error --- host/platform/Windows/src/mousehook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/platform/Windows/src/mousehook.c b/host/platform/Windows/src/mousehook.c index 605d2848..47730e48 100644 --- a/host/platform/Windows/src/mousehook.c +++ b/host/platform/Windows/src/mousehook.c @@ -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());