summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sync/ntapi_tt_wait_for_dummy_event.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sync/ntapi_tt_wait_for_dummy_event.c b/src/sync/ntapi_tt_wait_for_dummy_event.c
index 16f9823..376cf99 100644
--- a/src/sync/ntapi_tt_wait_for_dummy_event.c
+++ b/src/sync/ntapi_tt_wait_for_dummy_event.c
@@ -17,15 +17,14 @@ int32_t __stdcall __ntapi_tt_wait_for_dummy_event(void)
int32_t status;
void * hevent;
- status = __ntapi->tt_create_inheritable_event(
+ if ((status = __ntapi->tt_create_private_event(
&hevent,
NT_NOTIFICATION_EVENT,
- NT_EVENT_NOT_SIGNALED);
-
- if (status != NT_STATUS_SUCCESS)
+ NT_EVENT_NOT_SIGNALED)))
return status;
- return __ntapi->zw_wait_for_single_object(hevent,0,0);
+ status = __ntapi->zw_wait_for_single_object(hevent,0,0);
+ __ntapi->zw_close(hevent);
return status;
}