ws2_32/tests: Fix crash on win98.

This commit is contained in:
Paul Vriens 2008-05-28 10:05:02 +02:00 committed by Alexandre Julliard
parent d874e5c972
commit 9d566032bb
1 changed files with 4 additions and 0 deletions

View File

@ -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);