9 Sep
2013
9 Sep
'13
9:39 a.m.
Bruno Jesus <00cpxxx(a)gmail.com> writes:
+ fd = get_sock_fd( s, FILE_READ_DATA, NULL ); + if (fd == -1) + { + SetLastError(WSAENOTSOCK); + return SOCKET_ERROR; + } + release_sock_fd( s, fd );
You should avoid retrieving the fd if you are not using it. The handle should be checked at the point where you are doing something with it. -- Alexandre Julliard julliard(a)winehq.org