From c6ea17a3ce7e5884c323a66bd48f09f551dbb86d Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 18 Jan 2009 11:54:48 +0200 Subject: [PATCH] Win32: fix poll() return value Spotted by Laurent --- src/network/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/poll.c b/src/network/poll.c index 6c9aec3d63..5590b36a21 100644 --- a/src/network/poll.c +++ b/src/network/poll.c @@ -99,7 +99,7 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout) if (events.iErrorCode[FD_WRITE_BIT]) fds[i].revents |= POLLERR; } - if (fds[i].events) + if (fds[i].revents) n++; } if (ret == 0) -- 2.39.2