Commit 82ebebc6 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 5f36d023
...@@ -148,7 +148,7 @@ static NTSTATUS add_work_item_to_queue(struct work_item *work_item) ...@@ -148,7 +148,7 @@ static NTSTATUS add_work_item_to_queue(struct work_item *work_item)
if (!work_item_event) if (!work_item_event)
{ {
HANDLE sem; 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 )) if (interlocked_cmpxchg_ptr( &work_item_event, sem, 0 ))
NtClose(sem); /* somebody beat us to it */ NtClose(sem); /* somebody beat us to it */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment