ws2_32/tests: Actually test a return value (PVS-Studio)

Michael Stefaniuc mstefani at redhat.de
Wed Mar 4 03:14:40 CST 2015


---
 dlls/ws2_32/tests/sock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 6569515..7155a09 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -4374,6 +4374,7 @@ static void test_ioctlsocket(void)
     ok(ret != SOCKET_ERROR, "setsockopt failed unexpectedly\n");
     arg = 0;
     ret = ioctlsocket(sock, SIOCATMARK, &arg);
+    ok(ret != SOCKET_ERROR, "ioctlsocket failed unexpectedly\n");
     ok(arg, "SIOCATMARK expected a non-zero value\n");
 
     ret = WSAIoctl(sock, SIO_KEEPALIVE_VALS, &arg, 0, NULL, 0, &arg, NULL, NULL);
-- 
1.9.3



More information about the wine-patches mailing list