* thread.cc (MTinterface::CreateSemaphore): Correctly set semaphore max.

This commit is contained in:
Christopher Faylor
2001-01-03 18:50:25 +00:00
parent 234ad742b1
commit 4104f35e67
2 changed files with 6 additions and 1 deletions

View File

@ -434,7 +434,7 @@ MTinterface::CreateSemaphore (sem_t * _s, int pshared, int _v)
item->used = true;
item->shared = pshared;
item->win32_obj_id = ::CreateSemaphore (&sec_none_nih, _v, _v, NULL);
item->win32_obj_id = ::CreateSemaphore (&sec_none_nih, _v, LONG_MAX, NULL);
CHECKHANDLE (NULL, 1);