Joris Huizer : ws2_32/tests: Don' t test function directly when reporting GetLastError().
Module: wine Branch: master Commit: 36c76573de03d5890ae746f5cbddbe9fb5e42092 URL: http://source.winehq.org/git/wine.git/?a=commit;h=36c76573de03d5890ae746f5cb... Author: Joris Huizer <joris_huizer(a)yahoo.com> Date: Fri Feb 4 17:20:25 2011 +0100 ws2_32/tests: Don't test function directly when reporting GetLastError(). --- dlls/ws2_32/tests/sock.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 9d1de46..2a8c1d2 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -3773,7 +3773,8 @@ static void test_WSARecv(void) ling.l_onoff = 1; ling.l_linger = 0; - ok(!setsockopt (src, SOL_SOCKET, SO_LINGER, (char *) &ling, sizeof(ling)), "Failed to set linger %d\n", GetLastError()); + iret = setsockopt (src, SOL_SOCKET, SO_LINGER, (char *) &ling, sizeof(ling)); + ok(!iret, "Failed to set linger %d\n", GetLastError()); iret = WSARecv(dest, &bufs, 1, &bytesReturned, &flags, &ov, NULL); ok(iret == SOCKET_ERROR && GetLastError() == ERROR_IO_PENDING, "WSARecv failed - %d error %d\n", iret, GetLastError());
participants (1)
-
Alexandre Julliard