http://bugs.winehq.org/show_bug.cgi?id=9425
--- Comment #23 from Bruno Jesus 00cpxxx@gmail.com 2012-02-05 18:34:24 CST --- (In reply to comment #22)
Thx, your point highlights my original comment 10. We must not even return from WS_select() in case the user doesn't wait on exceptfds. But looking at WS_select() there is now way to prevent this with fixing get_poll_results() alone. BTW would we even enter get_poll_results() if user only selects exceptfds? Looks like we have to know about this move in WS_select() already.
As far as I remember get_poll_results is always called if poll returns != -1. The timeout is respected only if poll returns error as seen in: http://source.winehq.org/source/dlls/ws2_32/socket.c#L3752
About the conding style I was just following common rules I see often in other users reviewing =)