diff options
author | midipix <writeonce@midipix.org> | 2016-05-11 16:50:47 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-14 07:18:26 -0400 |
commit | dfc898424c46aa76a807151c5a89c7599ad39fbb (patch) | |
tree | 2a062bcfe0d459534b8f77195a8332293cd63b75 /src/sync | |
parent | eed8dcd8b2e363ea5083416539ee19fe4b531a9d (diff) | |
download | ntapi-dfc898424c46aa76a807151c5a89c7599ad39fbb.tar.bz2 ntapi-dfc898424c46aa76a807151c5a89c7599ad39fbb.tar.xz |
__ntapi_tt_sync_block_lock(): properly handle signedness.
Diffstat (limited to 'src/sync')
-rw-r--r-- | src/sync/ntapi_tt_sync_block.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sync/ntapi_tt_sync_block.c b/src/sync/ntapi_tt_sync_block.c index bcb9691..b37659a 100644 --- a/src/sync/ntapi_tt_sync_block.c +++ b/src/sync/ntapi_tt_sync_block.c @@ -60,7 +60,8 @@ int32_t __stdcall __ntapi_tt_sync_block_lock( if (sync_block->tid == tid) return NT_STATUS_SUCCESS; /* yield to server? */ - if ((sync_block->flags & NT_SYNC_BLOCK_YIELD_TO_SERVER) && (tid != sync_block->srvtid)) { + if ((sync_block->flags & NT_SYNC_BLOCK_YIELD_TO_SERVER) + && ((uint32_t)tid != sync_block->srvtid)) { hwait[0] = sync_block->hserver; hwait[1] = sync_block->hsignal; |