Re: [2/2] ws2_32: Fail when select is called with an invalid fd.
Sept. 14, 2010
2:22 a.m.
On Sun, Sep 12, 2010 at 5:23 PM, Vincent Povirk <vincent(a)codeweavers.com> wrote:
@@ -3193,6 +3193,10 @@ int WINAPI WS_select(int nfds, WS_fd_set *ws_readfds, return SOCKET_ERROR; }
+ for (i=0; i<count; i++) + if (pollfds[i].fd == -1) + return SOCKET_ERROR; You're leaking pollfds here. (As a nitpick - braces for for's that contain more than one line are nice)
Mike.
5673
Age (days ago)
5673
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mike Kaplinskiy