From e87364e9732469a40c0493646bda3798a07a14db Mon Sep 17 00:00:00 2001 From: libdavid <55893291+libdavid@users.noreply.github.com> Date: Thu, 27 Aug 2020 18:11:26 -0700 Subject: [PATCH] Fixing a wrong argument in "CreateEvent" call For manual reset event the second argument of CreateEventW( _In_opt_ LPSECURITY_ATTRIBUTES lpEventAttributes, _In_ BOOL bManualReset, ...) function call should be TRUE. --- src/win/win-helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win-helpers.cpp b/src/win/win-helpers.cpp index e09c76832b..e78b9589c0 100644 --- a/src/win/win-helpers.cpp +++ b/src/win/win-helpers.cpp @@ -789,7 +789,7 @@ namespace librealsense } manual_reset_event::manual_reset_event() - :event_base(CreateEvent(nullptr, FALSE, FALSE, nullptr)) + :event_base(CreateEvent(nullptr, TRUE, FALSE, nullptr)) {} auto_reset_event::auto_reset_event()