return if the passed event handle is NULL and not when it's valid
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4561 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
67d892ed05
commit
3c454a4e65
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ BOOL CloseHandle(HANDLE _event)
|
|||
{
|
||||
BOOL ret = TRUE;
|
||||
evnet_t *event = (evnet_t *) _event;
|
||||
if (event)
|
||||
if (!event)
|
||||
return FALSE;
|
||||
if (pthread_cond_destroy(&event->cond))
|
||||
ret = FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue