Add and fix a few stubs to return correct error.

This commit is contained in:
Vitaliy Margolen 2003-04-09 23:33:35 +00:00 committed by Alexandre Julliard
parent 2f1e412e8d
commit 7ea1033d50
2 changed files with 15 additions and 3 deletions

View File

@ -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;
}

View File

@ -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)