ntdll: Use INT_MAX for the semaphore count since LONG_MAX won't work on 64-bit.

This commit is contained in:
Alexandre Julliard 2008-12-31 21:55:11 +01:00
parent 5f36d0239f
commit 82ebebc671
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ static NTSTATUS add_work_item_to_queue(struct work_item *work_item)
if (!work_item_event)
{
HANDLE sem;
status = NtCreateSemaphore(&sem, SEMAPHORE_ALL_ACCESS, NULL, 1, LONG_MAX);
status = NtCreateSemaphore(&sem, SEMAPHORE_ALL_ACCESS, NULL, 1, INT_MAX);
if (interlocked_cmpxchg_ptr( &work_item_event, sem, 0 ))
NtClose(sem); /* somebody beat us to it */
}