ws2_32: Fix code style in WS_listen for consistency.(try 2)
haitao
liuguo09 at gmail.com
Fri Jan 7 04:43:42 CST 2011
Hi, Sorry that I forget to add the component(ws2_32: ) I'm changing
before the subject line. Now it's ok. Thanks!
Haitao Liu
-------------- next part --------------
From 335fee6a64fa251d83c6210b43aaef1e59fa60b2 Mon Sep 17 00:00:00 2001
From: Haitao Liu <liuguo09 at gmail.com>
Date: Fri, 7 Jan 2011 17:33:42 +0800
Subject: ws2_32: Fix code style in WS_listen for consistency.
---
dlls/ws2_32/socket.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 3d85bad..346c6c4 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3563,15 +3563,15 @@ int WINAPI WS_listen(SOCKET s, int backlog)
TRACE("socket %04lx, backlog %d\n", s, backlog);
if (fd != -1)
{
- if (listen(fd, backlog) == 0)
- {
+ if (listen(fd, backlog) == 0)
+ {
release_sock_fd( s, fd );
- _enable_event(SOCKET2HANDLE(s), FD_ACCEPT,
- FD_WINE_LISTENING,
- FD_CONNECT|FD_WINE_CONNECTED);
- return 0;
- }
- SetLastError(wsaErrno());
+ _enable_event(SOCKET2HANDLE(s), FD_ACCEPT,
+ FD_WINE_LISTENING,
+ FD_CONNECT|FD_WINE_CONNECTED);
+ return 0;
+ }
+ SetLastError(wsaErrno());
release_sock_fd( s, fd );
}
return SOCKET_ERROR;
--
1.7.1
More information about the wine-patches
mailing list