[PATCH] ws2_32: Removed deadcode (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Dec 31 08:12:41 CST 2011


Hi,

src is already closed and set to INVALID_SOCKET before.
CID 5505

Ciao, Marcus
---
 dlls/ws2_32/tests/sock.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 5677a2c..2905267 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -5328,8 +5328,6 @@ static void test_completion_port(void)
 
     if (dest != INVALID_SOCKET)
         closesocket(dest);
-    if (src != INVALID_SOCKET)
-        closesocket(src);
 
 
     src = socket(AF_INET, SOCK_STREAM, 0);
-- 
1.7.3.4




More information about the wine-patches mailing list