Module: wine Branch: master Commit: a65ae0ea5746292fe9cd2fc0e209467054328504 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a65ae0ea5746292fe9cd2fc0e2...
Author: Bruno Jesus 00cpxxx@gmail.com Date: Sun Mar 8 01:05:52 2015 -0300
ws2_32/tests: Fix a NT4 crash due to unsupported SIO_ADDRESS_LIST_QUERY.
---
dlls/ws2_32/tests/sock.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 6ad4265..d2c766b 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -7960,6 +7960,12 @@ static void test_address_list_query(void) bytes_returned = 0; ret = WSAIoctl(s, SIO_ADDRESS_LIST_QUERY, NULL, 0, NULL, 0, &bytes_returned, NULL, NULL); ok(ret == SOCKET_ERROR, "Got unexpected ret %d.\n", ret); + if(WSAGetLastError() == WSAEINVAL) + { + win_skip("Windows <= NT4 is not supported in this test\n"); + closesocket(s); + return; + } ok(WSAGetLastError() == WSAEFAULT, "Got unexpected error %d.\n", WSAGetLastError()); ok(bytes_returned >= FIELD_OFFSET(SOCKET_ADDRESS_LIST, Address[0]), "Got unexpected bytes_returned %u.\n", bytes_returned);