Fixed missing return value check.

This commit is contained in:
Armin Novak 2015-03-11 18:14:50 +01:00
parent 98b0f37020
commit 13dce87403

View File

@ -418,7 +418,11 @@ DWORD WaitForMultipleObjects(DWORD nCount, const HANDLE *lpHandles, BOOL bWaitAl
else
idx = index;
winpr_Handle_GetInfo(lpHandles[idx], &Type, &Object);
if (!winpr_Handle_GetInfo(lpHandles[idx], &Type, &Object))
{
WLog_ERR(TAG, "invalid hHandle.");
return WAIT_FAILED;
}
fd = winpr_Handle_getFd(lpHandles[idx]);