summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sync/ntapi_tt_sync_block.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sync/ntapi_tt_sync_block.c b/src/sync/ntapi_tt_sync_block.c
index 13e3cd9..fd9bb83 100644
--- a/src/sync/ntapi_tt_sync_block.c
+++ b/src/sync/ntapi_tt_sync_block.c
@@ -135,10 +135,10 @@ int32_t __stdcall __ntapi_tt_sync_block_lock(
lock = at_locked_cas(
(intptr_t *)&sync_block->hwait,
- 0,(intptr_t)hwait);
+ 0,(intptr_t)hwait[0]);
if (lock)
- __ntapi->zw_close(hwait);
+ __ntapi->zw_close(hwait[0]);
/* try again without a wait */
lock = at_locked_cas_32(
@@ -166,7 +166,7 @@ int32_t __stdcall __ntapi_tt_sync_block_lock(
/* wait */
status = __ntapi->zw_wait_for_multiple_objects(
- 2,sync_block->hwait,
+ 2,hwait,
NT_WAIT_ANY,
NT_SYNC_NON_ALERTABLE,
&timeout);