Commit c6ea17a3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix poll() return value

Spotted by Laurent
parent fb8414ad
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment