diff --git a/c-host/platform/Windows/src/platform.c b/c-host/platform/Windows/src/platform.c index e9241a72..414e7ce8 100644 --- a/c-host/platform/Windows/src/platform.c +++ b/c-host/platform/Windows/src/platform.c @@ -540,7 +540,7 @@ osEventHandle * os_wrapEvent(HANDLE handle) event->lock = 0; event->reset = false; - event->handle = event; + event->handle = handle; event->wrapped = true; event->msSpinTime = 0; event->signaled = false;