Commit 66109294 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32/tests: Test passing an output buffer to FIONBIO.

parent aadcff49
......@@ -3899,6 +3899,7 @@ static void test_fionbio(void)
u_long one = 1, zero = 0;
HANDLE port, event;
ULONG_PTR key;
void *output;
DWORD size;
SOCKET s;
int ret;
......@@ -3931,6 +3932,11 @@ static void test_fionbio(void)
ret = WSAIoctl(s, FIONBIO, &one, sizeof(one) + 1, NULL, 0, &size, NULL, NULL);
ok(!ret, "got error %u\n", WSAGetLastError());
output = VirtualAlloc(NULL, 4, MEM_RESERVE | MEM_COMMIT, PAGE_NOACCESS);
ret = WSAIoctl(s, FIONBIO, &one, sizeof(one) + 1, output, 4, &size, NULL, NULL);
todo_wine ok(!ret, "got error %u\n", WSAGetLastError());
VirtualFree(output, 0, MEM_FREE);
overlapped.Internal = 0xdeadbeef;
overlapped.InternalHigh = 0xdeadbeef;
size = 0xdeadbeef;
......
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