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