ws2_32: Improve implementation of get_poll_results.

Sebastian Lackner sebastian at fds-team.de
Tue Dec 2 06:31:51 CST 2014


All the index calculations make the code look unnecessary complicated - this patch simplifies everything by using pointers instead and moreover also fixes a couple of style issues. (It is especially ugly that the poll readfds and poll writefds can be accessed through j, but poll exceptfds can't because the index might be invalid in the third if branch.)

---
 dlls/ws2_32/socket.c | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001.patch
Type: text/x-patch
Size: 3036 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141202/31dea828/attachment-0001.bin>


More information about the wine-patches mailing list