Commit 9d566032 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

ws2_32/tests: Fix crash on win98.

parent d874e5c9
......@@ -1123,6 +1123,10 @@ static void test_WSASocket(void)
int ret, err;
UINT pi_size;
/* Set pi_size explicitly to a value below 2*sizeof(WSAPROTOCOL_INFOA)
* to avoid a crash on win98.
*/
pi_size = 0;
ret = WSAEnumProtocolsA(providers, NULL, &pi_size);
ok(ret == SOCKET_ERROR, "WSAEnumProtocolsA({6,0}, NULL, 0) returned %d\n",
ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment