Alexandre Julliard : ntdll: Use INT_MAX for the semaphore count since LONG_MAX won't work on 64-bit.
Alexandre Julliard
julliard at winehq.org
Fri Jan 2 08:25:33 CST 2009
Module: wine
Branch: master
Commit: 82ebebc671941af0374e2a8c3b826348c2a7af42
URL: http://source.winehq.org/git/wine.git/?a=commit;h=82ebebc671941af0374e2a8c3b826348c2a7af42
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Dec 31 21:55:11 2008 +0100
ntdll: Use INT_MAX for the semaphore count since LONG_MAX won't work on 64-bit.
---
dlls/ntdll/threadpool.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index af42b30..31a1a56 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -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 */
}
More information about the wine-cvs
mailing list