From dfc898424c46aa76a807151c5a89c7599ad39fbb Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 11 May 2016 16:50:47 -0400 Subject: __ntapi_tt_sync_block_lock(): properly handle signedness. --- src/sync/ntapi_tt_sync_block.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3