Commit 7ea1033d authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

Add and fix a few stubs to return correct error.

parent 2f1e412e
......@@ -4261,7 +4261,8 @@ int WINAPI WSADuplicateSocketA( SOCKET s, DWORD dwProcessId, LPWSAPROTOCOL_INFOA
int WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA info)
{
FIXME("Request to install service %s\n",debugstr_a(info->lpszServiceClassName));
return WSAEACCES;
WSASetLastError(WSAEACCES);
return SOCKET_ERROR;
}
/***********************************************************************
......@@ -4270,5 +4271,16 @@ int WINAPI WSAInstallServiceClassA(LPWSASERVICECLASSINFOA info)
int WINAPI WSAInstallServiceClassW(LPWSASERVICECLASSINFOW info)
{
FIXME("Request to install service %s\n",debugstr_w(info->lpszServiceClassName));
return WSAEACCES;
WSASetLastError(WSAEACCES);
return SOCKET_ERROR;
}
/***********************************************************************
* WSARemoveServiceClass (WS2_32.70)
*/
int WINAPI WSARemoveServiceClass(LPGUID info)
{
FIXME("Request to remove service %p\n",info);
WSASetLastError(WSATYPE_NOT_FOUND);
return SOCKET_ERROR;
}
......@@ -71,7 +71,7 @@
67 stdcall WSARecv(long ptr long ptr ptr ptr ptr)
68 stub WSARecvDisconnect
69 stdcall WSARecvFrom(long ptr long ptr ptr ptr ptr ptr ptr )
70 stub WSARemoveServiceClass
70 stdcall WSARemoveServiceClass(ptr)
71 stdcall WSAResetEvent(long) kernel32.ResetEvent
72 stdcall WSASend(long ptr long ptr long ptr ptr)
73 stdcall WSASendDisconnect(long ptr)
......
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