Fix typoed comparison
winsup/cygwin/ChangeLog * thread.cc (semaphore::open): Fix mistaken conditional. Signed-off-by: Peter Foley <pefoley2@pefoley.com>
This commit is contained in:
parent
1eb7cb2553
commit
0611132f04
|
@ -3746,7 +3746,7 @@ semaphore::open (unsigned long long hash, LUID luid, int fd, int oflag,
|
||||||
for (semaphore *sema = semaphores.head; sema; sema = sema->next)
|
for (semaphore *sema = semaphores.head; sema; sema = sema->next)
|
||||||
if (sema->fd >= 0 && sema->hash == hash
|
if (sema->fd >= 0 && sema->hash == hash
|
||||||
&& sema->luid.HighPart == luid.HighPart
|
&& sema->luid.HighPart == luid.HighPart
|
||||||
&& sema->luid.LowPart == sema->luid.LowPart)
|
&& sema->luid.LowPart == luid.LowPart)
|
||||||
{
|
{
|
||||||
wasopen = true;
|
wasopen = true;
|
||||||
semaphores.mx.unlock ();
|
semaphores.mx.unlock ();
|
||||||
|
|
Loading…
Reference in New Issue