WaitForMultipleObjects should conform to API and return WAIT_FAILED when nCount is 0