From b7cd2bb14e2801af2f9ff45e8412dbe69535d3f0 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 29 Jan 2019 21:35:49 -0500 Subject: ntapi_zw_create_event(), __ntapi_tt_create_private_event(): use volatile type. --- src/sync/ntapi_tt_create_event.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/sync') diff --git a/src/sync/ntapi_tt_create_event.c b/src/sync/ntapi_tt_create_event.c index 3107bdb..c385dd1 100644 --- a/src/sync/ntapi_tt_create_event.c +++ b/src/sync/ntapi_tt_create_event.c @@ -12,10 +12,10 @@ static int32_t __cdecl __tt_create_event( - __out void ** hevent, - __in nt_event_type event_type, - __in int32_t initial_state, - __in uint32_t obj_attr) + __out void * volatile * hevent, + __in nt_event_type event_type, + __in int32_t initial_state, + __in uint32_t obj_attr) { int32_t status; nt_sqos sqos; @@ -64,9 +64,9 @@ int32_t __stdcall __ntapi_tt_create_inheritable_event( int32_t __stdcall __ntapi_tt_create_private_event( - __out void ** hevent, - __in nt_event_type event_type, - __in int32_t initial_state) + __out void * volatile * hevent, + __in nt_event_type event_type, + __in int32_t initial_state) { return __tt_create_event( hevent, -- cgit v1.2.3