From: RĂ©mi Denis-Courmont Date: Sun, 18 Jan 2009 09:54:48 +0000 (+0200) Subject: Win32: fix poll() return value X-Git-Tag: 1.0.0-pre1~1259 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c6ea17a3ce7e5884c323a66bd48f09f551dbb86d;p=vlc Win32: fix poll() return value Spotted by Laurent --- 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)