Commit 881ee71a authored by Julian Klemann's avatar Julian Klemann Committed by Alexandre Julliard

ws2_32: Add stub for SIO_ENABLE_CIRCULAR_QUEUEING in WSAIoctl().

parent 14237e32
...@@ -2371,6 +2371,18 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID ...@@ -2371,6 +2371,18 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
return ret ? -1 : 0; return ret ? -1 : 0;
} }
case SIO_ENABLE_CIRCULAR_QUEUEING:
{
NTSTATUS status = STATUS_SUCCESS;
DWORD ret;
FIXME( "SIO_ENABLE_CIRCULAR_QUEUEING stub\n" );
ret = server_ioctl_sock( s, IOCTL_AFD_WINE_COMPLETE_ASYNC, &status, sizeof(status),
NULL, 0, ret_size, overlapped, completion );
SetLastError( ret );
return ret ? -1 : 0;
}
case SIO_BASE_HANDLE: case SIO_BASE_HANDLE:
{ {
NTSTATUS status; NTSTATUS status;
......
...@@ -5113,6 +5113,19 @@ static void test_base_handle(void) ...@@ -5113,6 +5113,19 @@ static void test_base_handle(void)
} }
} }
static void test_circular_queueing(void)
{
SOCKET s;
DWORD size;
int ret;
s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
ret = WSAIoctl(s, SIO_ENABLE_CIRCULAR_QUEUEING, NULL, 0, NULL, 0, &size, NULL, NULL);
ok(!ret, "expected 0, got %d\n", ret);
closesocket(s);
}
static BOOL drain_pause = FALSE; static BOOL drain_pause = FALSE;
static DWORD WINAPI drain_socket_thread(LPVOID arg) static DWORD WINAPI drain_socket_thread(LPVOID arg)
{ {
...@@ -12578,6 +12591,7 @@ START_TEST( sock ) ...@@ -12578,6 +12591,7 @@ START_TEST( sock )
test_sioRoutingInterfaceQuery(); test_sioRoutingInterfaceQuery();
test_sioAddressListChange(); test_sioAddressListChange();
test_base_handle(); test_base_handle();
test_circular_queueing();
test_unsupported_ioctls(); test_unsupported_ioctls();
test_WSASendMsg(); test_WSASendMsg();
......
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