summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-15 05:05:45 +0000
committermidipix <writeonce@midipix.org>2016-10-16 03:16:01 -0400
commitaf4983a66a7913432a7c254ab837bfd0180f1fc7 (patch)
tree69ea5b2e56842c6a0c91f2b692b8d87decafa816
parent486c117138d32faff6f9ff07b303dc5b5b8eb78a (diff)
downloadntapi-af4983a66a7913432a7c254ab837bfd0180f1fc7.tar.bz2
ntapi-af4983a66a7913432a7c254ab837bfd0180f1fc7.tar.xz
__ntapi_tt_sync_block_lock(): fix references to hwait.
-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);