ws2_32: Handle SO_ERROR manually in getsockopt().
commit71c60d15d3fb6c88c23d8c8cd4f7e6cfd3e89458
authorBruno Jesus <00cpxxx@gmail.com>
Wed, 8 Apr 2015 05:02:55 +0000 (8 02:02 -0300)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 8 Apr 2015 14:16:40 +0000 (8 23:16 +0900)
tree42128eee7d8438bdccb3681adf93becbb5f1b8b3
parentb34ca6f4fe836b5ddd43672d1a789aa2ddde7360
ws2_32: Handle SO_ERROR manually in getsockopt().

As soon as SO_ERROR is read from getsockopt it is reset in the kernel,
when attempting a non-blocking connection the wine server reads
SO_ERROR first so when the application tries to read the value it will
end with zero.
dlls/ws2_32/socket.c
dlls/ws2_32/tests/sock.c