{
WINPR_TIMER* pEvent = (WINPR_TIMER*) handle;
- if (!pEvent || (pEvent->Type != HANDLE_TYPE_EVENT) || (pEvent == INVALID_HANDLE_VALUE))
+ if (!pEvent || (pEvent->Type != HANDLE_TYPE_EVENT))
{
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
{
WINPR_TIMER* pMutex = (WINPR_TIMER*) handle;
- if (!pMutex || (pMutex->Type != HANDLE_TYPE_MUTEX) || (pMutex == INVALID_HANDLE_VALUE))
+ if (!pMutex || (pMutex->Type != HANDLE_TYPE_MUTEX))
{
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
{
WINPR_TIMER* pSemaphore = (WINPR_TIMER*) handle;
- if (!pSemaphore || (pSemaphore->Type != HANDLE_TYPE_SEMAPHORE) || (pSemaphore == INVALID_HANDLE_VALUE))
+ if (!pSemaphore || (pSemaphore->Type != HANDLE_TYPE_SEMAPHORE))
{
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;