From da5ebee3f78906a7993b477b7aa50c01953081d2 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 19 Dec 2019 13:38:05 +1100 Subject: [PATCH] [c-host] fix #220, invalid handle provided to WaitForObjects --- c-host/platform/Windows/src/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;