Module: wine Branch: master Commit: a8a2ca72bd95cc05bb217ddc995eec94f07bb42a URL: http://source.winehq.org/git/wine.git/?a=commit;h=a8a2ca72bd95cc05bb217ddc99...
Author: Alexandre Julliard julliard@winehq.org Date: Sun Jan 25 17:30:14 2009 +0100
ws2_32/tests: Fix a test failure on WinME.
---
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 0b5cb88..22455ef 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -852,7 +852,8 @@ static void Exit (void) ok ( ret == 0, "WSACleanup failed ret = %d GetLastError is %d\n", ret, err); ret = WSACleanup(); err = WSAGetLastError(); - ok ( ret == SOCKET_ERROR && err == WSANOTINITIALISED, + ok ( (ret == SOCKET_ERROR && err == WSANOTINITIALISED) || + broken(ret == 0), /* WinME */ "WSACleanup returned %d GetLastError is %d\n", ret, err); }