http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f36d02
)
ntdll: Use INT_MAX for the semaphore count since LONG_MAX won't work on 64-bit.
author
Alexandre Julliard
<julliard@winehq.org>
Wed, 31 Dec 2008 20:55:11 +0000
(21:55 +0100)
committer
Alexandre Julliard
<julliard@winehq.org>
Wed, 31 Dec 2008 20:55:11 +0000
(21:55 +0100)
dlls/ntdll/threadpool.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/ntdll/threadpool.c
b/dlls/ntdll/threadpool.c
index af42b307f38a611fa7cfc07bcf6ad56f9436cdbc..31a1a5605e0b45149a1f0fda9fc695e1e200e7d6 100644
(file)
--- 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 */
}