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:
kichik 2006-03-10 14:55:08 +00:00
parent 67d892ed05
commit 3c454a4e65

View file

@ -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;