Update semaphore.c
authorRoman Kalashnikov <lunix0x@gmail.com>
Sat, 28 Oct 2017 08:59:23 +0000 (11:59 +0300)
committerGitHub <noreply@github.com>
Sat, 28 Oct 2017 08:59:23 +0000 (11:59 +0300)
winpr/libwinpr/synch/semaphore.c

index b3de41e..68040e6 100644 (file)
@@ -129,6 +129,7 @@ HANDLE CreateSemaphoreW(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lIniti
                return NULL;
 
        semaphore->pipe_fd[0] = -1;
+       semaphore->pipe_fd[1] = -1;
        semaphore->sem = (winpr_sem_t*) NULL;
        semaphore->ops = &ops;