[PATCH] ws2_32/tests: Fix the printed value in a few ok lines.

Stefan Dösinger stefan at codeweavers.com
Sun Jan 21 03:38:18 CST 2018


---
 dlls/ws2_32/tests/sock.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 96631aea37..e188724203 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -1768,8 +1768,8 @@ todo_wine
         ok(!csinfoA.cs.LocalAddr.iSockaddrLength, "Expected 0, got %d\n", csinfoA.cs.LocalAddr.iSockaddrLength);
         ok(csinfoA.cs.LocalAddr.lpSockaddr == NULL, "Expected NULL, got %p\n", csinfoA.cs.LocalAddr.lpSockaddr);
         /* Socket is not connected, no information provided */
-        ok(!csinfoA.cs.RemoteAddr.iSockaddrLength, "Expected 0, got %d\n", csinfoA.cs.LocalAddr.iSockaddrLength);
-        ok(csinfoA.cs.RemoteAddr.lpSockaddr == NULL, "Expected NULL, got %p\n", csinfoA.cs.LocalAddr.lpSockaddr);
+        ok(!csinfoA.cs.RemoteAddr.iSockaddrLength, "Expected 0, got %d\n", csinfoA.cs.RemoteAddr.iSockaddrLength);
+        ok(csinfoA.cs.RemoteAddr.lpSockaddr == NULL, "Expected NULL, got %p\n", csinfoA.cs.RemoteAddr.lpSockaddr);
 
         err = bind(s, (struct sockaddr*)&saddr, sizeof(saddr));
         ok(!err, "Expected 0, got %d\n", err);
@@ -1781,8 +1781,8 @@ todo_wine
         ok(csinfoA.cs.LocalAddr.iSockaddrLength, "Expected non-zero\n");
         ok(csinfoA.cs.LocalAddr.lpSockaddr != NULL, "Expected non-null\n");
         /* Socket is not connected, no information provided */
-        ok(!csinfoA.cs.RemoteAddr.iSockaddrLength, "Expected 0, got %d\n", csinfoA.cs.LocalAddr.iSockaddrLength);
-        ok(csinfoA.cs.RemoteAddr.lpSockaddr == NULL, "Expected NULL, got %p\n", csinfoA.cs.LocalAddr.lpSockaddr);
+        ok(!csinfoA.cs.RemoteAddr.iSockaddrLength, "Expected 0, got %d\n", csinfoA.cs.RemoteAddr.iSockaddrLength);
+        ok(csinfoA.cs.RemoteAddr.lpSockaddr == NULL, "Expected NULL, got %p\n", csinfoA.cs.RemoteAddr.lpSockaddr);
 
         err = bind(s2, (struct sockaddr*)&saddr, sizeof(saddr));
         ok(!err, "Expected 0, got %d\n", err);
-- 
2.13.6




More information about the wine-devel mailing list