http://bugs.winehq.org/show_bug.cgi?id=9425
--- Comment #21 from Bruno Jesus 00cpxxx@gmail.com 2012-02-05 17:32:41 CST --- Does it remove any of the TODOs from the socket test file? If not you have to add a new test there and prove it fixes this problem (it's usually the only way to get a code change in).
You seen to be using k_w2e without initialization if no write FDs are set.
Maybe there will be an overflow of the exceptfds array because of doubled fds, isn't it?
General wine coding rules: Stick to the coding near the changes (see how { is used in the next line instead of in the end of the line) Don't add {} if there is only one line in the if/else.