Bruno Jesus : ws2_32: Trace accept() error.

Alexandre Julliard julliard at winehq.org
Mon Feb 20 15:03:43 CST 2017


Module: wine
Branch: master
Commit: f482eed2988d0f0c88b52fc8a264a4365e14a418
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f482eed2988d0f0c88b52fc8a264a4365e14a418

Author: Bruno Jesus <00cpxxx at gmail.com>
Date:   Sun Feb 19 15:54:31 2017 -0300

ws2_32: Trace accept() error.

Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ws2_32/socket.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 4977bbf..3c8c806 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2737,10 +2737,7 @@ SOCKET WINAPI WS_accept(SOCKET s, struct WS_sockaddr *addr, int *addrlen32)
     TRACE("socket %04lx\n", s );
     status = _is_blocking(s, &is_blocking);
     if (status)
-    {
-        set_error(status);
-        return INVALID_SOCKET;
-    }
+        goto error;
 
     do {
         /* try accepting first (if there is a deferred connection) */
@@ -2773,7 +2770,9 @@ SOCKET WINAPI WS_accept(SOCKET s, struct WS_sockaddr *addr, int *addrlen32)
         }
     } while (is_blocking && status == STATUS_CANT_WAIT);
 
+error:
     set_error(status);
+    WARN(" -> ERROR %d\n", GetLastError());
     return INVALID_SOCKET;
 }
 




More information about the wine-cvs mailing list