diff options
author | midipix <writeonce@midipix.org> | 2016-10-15 05:05:45 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-10-16 03:16:01 -0400 |
commit | af4983a66a7913432a7c254ab837bfd0180f1fc7 (patch) | |
tree | 69ea5b2e56842c6a0c91f2b692b8d87decafa816 /src/sync | |
parent | 486c117138d32faff6f9ff07b303dc5b5b8eb78a (diff) | |
download | ntapi-af4983a66a7913432a7c254ab837bfd0180f1fc7.tar.bz2 ntapi-af4983a66a7913432a7c254ab837bfd0180f1fc7.tar.xz |
__ntapi_tt_sync_block_lock(): fix references to hwait.
Diffstat (limited to 'src/sync')
-rw-r--r-- | src/sync/ntapi_tt_sync_block.c | 6 |
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); |