Alex Henrie : ws2_32/tests: Initialize bytesReturned to 123456 before a failing test.

Alexandre Julliard julliard at winehq.org
Thu Jan 4 17:03:21 CST 2018


Module: wine
Branch: master
Commit: 414260f3568ff7bdc06d5a7339b7ef10d1dad991
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=414260f3568ff7bdc06d5a7339b7ef10d1dad991

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Wed Jan  3 22:33:31 2018 -0700

ws2_32/tests: Initialize bytesReturned to 123456 before a failing test.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 22b7331..96631ae 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -8539,6 +8539,7 @@ todo_wine
     dwret = WaitForSingleObject(overlapped.hEvent, 1000);
     ok(dwret == WAIT_OBJECT_0, "Waiting for accept event failed with %d + errno %d\n", dwret, GetLastError());
 
+    bytesReturned = 123456;
     bret = GetOverlappedResult((HANDLE)listener, &overlapped, &bytesReturned, FALSE);
     ok(bret, "GetOverlappedResult failed, error %d\n", GetLastError());
     ok(bytesReturned == 0, "bytesReturned isn't supposed to be %d\n", bytesReturned);




More information about the wine-cvs mailing list