summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-11 16:50:47 -0400
committermidipix <writeonce@midipix.org>2016-05-14 07:18:26 -0400
commitdfc898424c46aa76a807151c5a89c7599ad39fbb (patch)
tree2a062bcfe0d459534b8f77195a8332293cd63b75 /src
parenteed8dcd8b2e363ea5083416539ee19fe4b531a9d (diff)
downloadntapi-dfc898424c46aa76a807151c5a89c7599ad39fbb.tar.bz2
ntapi-dfc898424c46aa76a807151c5a89c7599ad39fbb.tar.xz
__ntapi_tt_sync_block_lock(): properly handle signedness.
Diffstat (limited to 'src')
-rw-r--r--src/sync/ntapi_tt_sync_block.c3
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;