ws2_32/tests: Remove dead code (coverity)

Frédéric Delanoy frederic.delanoy at gmail.com
Sat Oct 27 12:23:12 CDT 2012


'src' socket was already closed and set to INVALID_SOCKET above.
---
 dlls/ws2_32/tests/sock.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 6fa4249..8860448 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -5402,8 +5402,6 @@ static void test_completion_port(void)
 
     if (dest != INVALID_SOCKET)
         closesocket(dest);
-    if (src != INVALID_SOCKET)
-        closesocket(src);
 
     memset(&ov, 0, sizeof(ov));
 
-- 
1.8.0




More information about the wine-patches mailing list