Commit 63110f98 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

ws2_32: Clear last error in WSASocketW.

parent b344d1d0
......@@ -3363,6 +3363,7 @@ SOCKET WINAPI WSASocketW(int af, int type, int protocol,
CloseHandle(handle);
return INVALID_SOCKET;
}
WSASetLastError(0);
return ret;
done:
......
......@@ -2418,7 +2418,7 @@ static void test_WSASocket(void)
{
SetLastError( 0xdeadbeef );
sock = WSASocketA( tests[i].family, tests[i].type, tests[i].protocol, NULL, 0, 0 );
todo_wine_if (!tests[i].error || i == 7)
todo_wine_if (i == 7)
ok(WSAGetLastError() == tests[i].error, "Test %u: got wrong error %u\n", i, WSAGetLastError());
if (tests[i].error)
{
......
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