Commit 4b9a095e authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ntdll: Map EDESTADDRREQ to STATUS_INVALID_CONNECTION.

parent 2c274062
......@@ -169,7 +169,7 @@ static NTSTATUS sock_errno_to_status( int err )
case EWOULDBLOCK: return STATUS_DEVICE_NOT_READY;
case EALREADY: return STATUS_NETWORK_BUSY;
case ENOTSOCK: return STATUS_OBJECT_TYPE_MISMATCH;
case EDESTADDRREQ: return STATUS_INVALID_PARAMETER;
case EDESTADDRREQ: return STATUS_INVALID_CONNECTION;
case EMSGSIZE: return STATUS_BUFFER_OVERFLOW;
case EPROTONOSUPPORT:
case ESOCKTNOSUPPORT:
......
......@@ -13901,7 +13901,7 @@ static void test_connect_udp(void)
SetLastError(0xdeadbeef);
ret = send(client, "data", 4, 0);
ok(ret == -1, "got %d\n", ret);
todo_wine ok(GetLastError() == WSAENOTCONN, "got error %lu\n", GetLastError());
ok(GetLastError() == WSAENOTCONN, "got error %lu\n", GetLastError());
SetLastError(0xdeadbeef);
ret = recv(server, buffer, sizeof(buffer), 0);
......@@ -13949,7 +13949,7 @@ static void test_connect_udp(void)
SetLastError(0xdeadbeef);
ret = send(server, "data", 4, 0);
ok(ret == -1, "got %d\n", ret);
todo_wine ok(GetLastError() == WSAENOTCONN, "got error %lu\n", GetLastError());
ok(GetLastError() == WSAENOTCONN, "got error %lu\n", GetLastError());
ret = connect(client, (struct sockaddr *)&addr, sizeof(addr));
ok(!ret, "got error %lu\n", GetLastError());
......
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