summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-29 21:35:49 -0500
committermidipix <writeonce@midipix.org>2019-01-31 22:42:11 -0500
commitb7cd2bb14e2801af2f9ff45e8412dbe69535d3f0 (patch)
tree3edc2aeb5d02141e882bfa7c1aa2dde064287b31
parente39c77034b9eab664645c6abad96048e7b3da472 (diff)
downloadntapi-b7cd2bb14e2801af2f9ff45e8412dbe69535d3f0.tar.bz2
ntapi-b7cd2bb14e2801af2f9ff45e8412dbe69535d3f0.tar.xz
ntapi_zw_create_event(), __ntapi_tt_create_private_event(): use volatile type.
-rw-r--r--include/ntapi/nt_sync.h8
-rw-r--r--src/sync/ntapi_tt_create_event.c14
2 files changed, 11 insertions, 11 deletions
diff --git a/include/ntapi/nt_sync.h b/include/ntapi/nt_sync.h
index f5e62f3..2057632 100644
--- a/include/ntapi/nt_sync.h
+++ b/include/ntapi/nt_sync.h
@@ -205,7 +205,7 @@ typedef int32_t __stdcall ntapi_zw_query_timer(
typedef int32_t __stdcall ntapi_zw_create_event(
- __out void ** hevent,
+ __out void * volatile * hevent,
__in uint32_t desired_access,
__in nt_object_attributes * obj_attr,
__in nt_event_type event_type,
@@ -380,9 +380,9 @@ typedef int32_t __stdcall ntapi_tt_create_inheritable_event(
typedef 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);
typedef void __stdcall ntapi_tt_sync_block_init(
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,