[1/2] ws2_32: Add missing else to getsockopt(SO_ACCEPTCONN)
Bruno Jesus
00cpxxx at gmail.com
Sat Sep 21 13:44:57 CDT 2013
-------------- next part --------------
---
dlls/ws2_32/socket.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 6cfe703..2020b6a 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2973,10 +2973,11 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
SetLastError((errno == EBADF) ? WSAENOTSOCK : wsaErrno());
ret = SOCKET_ERROR;
}
-
- /* BSD returns != 0 while Windows return exact == 1 */
- if (*(int *)optval) *(int *)optval = 1;
-
+ else
+ {
+ /* BSD returns != 0 while Windows return exact == 1 */
+ if (*(int *)optval) *(int *)optval = 1;
+ }
release_sock_fd( s, fd );
return ret;
case WS_SO_DONTLINGER:
--
1.8.3.2
More information about the wine-patches
mailing list