Commit 8be26da7 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

Stub implementations for WPUCompleteOverlappedRequest,

WSADuplicateSocketW, WSAEnumNameSpaceProviders{A,W}, WSAGetQOSByName, WSAGetServiceClassInfo{A,W}, WSAGetServiceClassNameByClassId{A,W}, WSALookupServiceEnd, WSALookupServiceNext{A,W}, WSAProviderConfigChange, WSASetService{A,W}, WSCEnableNSProvider, WSCGetProviderPath, WSCInstallNameSpace, WSCWriteProviderOrder. Implementations for WSANtohl, WSANtohs, WSASocketA->W crosscall. Avoid NULL dereferences in WSAStringToAddress{A,W} and WSAAddressToString{A,W}.
parent 07aa50bc
...@@ -760,3 +760,17 @@ INT WINAPI WSApSetPostRoutine(LPWPUPOSTMESSAGE lpPostRoutine) ...@@ -760,3 +760,17 @@ INT WINAPI WSApSetPostRoutine(LPWPUPOSTMESSAGE lpPostRoutine)
FIXME("(%p), stub !\n", lpPostRoutine); FIXME("(%p), stub !\n", lpPostRoutine);
return 0; return 0;
} }
/***********************************************************************
* (WS2_32.25)
*/
WSAEVENT WINAPI WPUCompleteOverlappedRequest(SOCKET s, LPWSAOVERLAPPED overlapped,
DWORD error, DWORD transferred, LPINT errno)
{
FIXME("(0x%08x,%p,0x%08lx,0x%08lx,%p), stub !\n", s, overlapped, error, transferred, errno);
if (errno)
*errno = WSAEINVAL;
return NULL;
}
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
22 stdcall shutdown(long long) WS_shutdown 22 stdcall shutdown(long long) WS_shutdown
23 stdcall socket(long long long) WS_socket 23 stdcall socket(long long long) WS_socket
24 stdcall WSApSetPostRoutine(ptr) 24 stdcall WSApSetPostRoutine(ptr)
25 stub WPUCompleteOverlappedRequest 25 stdcall WPUCompleteOverlappedRequest(long ptr long long ptr)
26 stdcall WSAAccept(long ptr ptr ptr long) 26 stdcall WSAAccept(long ptr ptr ptr long)
27 stdcall WSAAddressToStringA(ptr long ptr ptr ptr) 27 stdcall WSAAddressToStringA(ptr long ptr ptr ptr)
28 stdcall WSAAddressToStringW(ptr long ptr ptr ptr) 28 stdcall WSAAddressToStringW(ptr long ptr ptr ptr)
...@@ -34,19 +34,19 @@ ...@@ -34,19 +34,19 @@
30 stdcall WSAConnect(long ptr long ptr ptr ptr ptr) 30 stdcall WSAConnect(long ptr long ptr ptr ptr ptr)
31 stdcall WSACreateEvent () 31 stdcall WSACreateEvent ()
32 stdcall WSADuplicateSocketA(long long ptr) 32 stdcall WSADuplicateSocketA(long long ptr)
33 stub WSADuplicateSocketW 33 stdcall WSADuplicateSocketW(long long ptr)
34 stub WSAEnumNameSpaceProvidersA 34 stdcall WSAEnumNameSpaceProvidersA(ptr ptr)
35 stub WSAEnumNameSpaceProvidersW 35 stdcall WSAEnumNameSpaceProvidersW(ptr ptr)
36 stdcall WSAEnumNetworkEvents(long long ptr) 36 stdcall WSAEnumNetworkEvents(long long ptr)
37 stdcall WSAEnumProtocolsA(ptr ptr ptr) 37 stdcall WSAEnumProtocolsA(ptr ptr ptr)
38 stdcall WSAEnumProtocolsW(ptr ptr ptr) 38 stdcall WSAEnumProtocolsW(ptr ptr ptr)
39 stdcall WSAEventSelect(long long long) 39 stdcall WSAEventSelect(long long long)
40 stdcall WSAGetOverlappedResult(long ptr ptr long ptr) 40 stdcall WSAGetOverlappedResult(long ptr ptr long ptr)
41 stub WSAGetQOSByName 41 stdcall WSAGetQOSByName(long ptr ptr)
42 stub WSAGetServiceClassInfoA 42 stdcall WSAGetServiceClassInfoA(ptr ptr ptr ptr)
43 stub WSAGetServiceClassInfoW 43 stdcall WSAGetServiceClassInfoW(ptr ptr ptr ptr)
44 stub WSAGetServiceClassNameByClassIdA 44 stdcall WSAGetServiceClassNameByClassIdA(ptr ptr ptr)
45 stub WSAGetServiceClassNameByClassIdW 45 stdcall WSAGetServiceClassNameByClassIdW(ptr ptr ptr)
46 stdcall WSAHtonl(long long ptr) 46 stdcall WSAHtonl(long long ptr)
47 stdcall WSAHtons(long long ptr) 47 stdcall WSAHtons(long long ptr)
48 stdcall WSAInstallServiceClassA(ptr) 48 stdcall WSAInstallServiceClassA(ptr)
...@@ -62,14 +62,14 @@ ...@@ -62,14 +62,14 @@
58 stdcall WSAJoinLeaf(long ptr long ptr ptr ptr ptr long) 58 stdcall WSAJoinLeaf(long ptr long ptr ptr ptr ptr long)
59 stdcall WSALookupServiceBeginA(ptr long ptr) 59 stdcall WSALookupServiceBeginA(ptr long ptr)
60 stdcall WSALookupServiceBeginW(ptr long ptr) 60 stdcall WSALookupServiceBeginW(ptr long ptr)
61 stub WSALookupServiceEnd 61 stdcall WSALookupServiceEnd(long)
62 stub WSALookupServiceNextA 62 stdcall WSALookupServiceNextA(long long ptr ptr)
63 stub WSALookupServiceNextW 63 stdcall WSALookupServiceNextW(long long ptr ptr)
64 stub WSANtohl 64 stdcall WSANtohl(long long ptr)
65 stub WSANtohs 65 stdcall WSANtohs(long long ptr)
66 stub WSAProviderConfigChange 66 stdcall WSAProviderConfigChange(ptr ptr ptr)
67 stdcall WSARecv(long ptr long ptr ptr ptr ptr) 67 stdcall WSARecv(long ptr long ptr ptr ptr ptr)
68 stub WSARecvDisconnect 68 stdcall WSARecvDisconnect(long ptr)
69 stdcall WSARecvFrom(long ptr long ptr ptr ptr ptr ptr ptr ) 69 stdcall WSARecvFrom(long ptr long ptr ptr ptr ptr ptr ptr )
70 stdcall WSARemoveServiceClass(ptr) 70 stdcall WSARemoveServiceClass(ptr)
71 stdcall WSAResetEvent(long) kernel32.ResetEvent 71 stdcall WSAResetEvent(long) kernel32.ResetEvent
...@@ -77,22 +77,22 @@ ...@@ -77,22 +77,22 @@
73 stdcall WSASendDisconnect(long ptr) 73 stdcall WSASendDisconnect(long ptr)
74 stdcall WSASendTo(long ptr long ptr long ptr long ptr ptr) 74 stdcall WSASendTo(long ptr long ptr long ptr long ptr ptr)
75 stdcall WSASetEvent(long) kernel32.SetEvent 75 stdcall WSASetEvent(long) kernel32.SetEvent
76 stub WSASetServiceA 76 stdcall WSASetServiceA(ptr long long)
77 stub WSASetServiceW 77 stdcall WSASetServiceW(ptr long long)
78 stdcall WSASocketA(long long long ptr long long) 78 stdcall WSASocketA(long long long ptr long long)
79 stub WSASocketW 79 stdcall WSASocketW(long long long ptr long long)
80 stdcall WSAStringToAddressA(str long ptr ptr ptr) 80 stdcall WSAStringToAddressA(str long ptr ptr ptr)
81 stdcall WSAStringToAddressW(wstr long ptr ptr ptr) 81 stdcall WSAStringToAddressW(wstr long ptr ptr ptr)
82 stdcall WSAWaitForMultipleEvents(long ptr long long long) kernel32.WaitForMultipleObjectsEx 82 stdcall WSAWaitForMultipleEvents(long ptr long long long) kernel32.WaitForMultipleObjectsEx
83 stdcall WSCDeinstallProvider(ptr ptr) 83 stdcall WSCDeinstallProvider(ptr ptr)
84 stub WSCEnableNSProvider 84 stdcall WSCEnableNSProvider(ptr long)
85 stdcall WSCEnumProtocols(ptr ptr ptr ptr) 85 stdcall WSCEnumProtocols(ptr ptr ptr ptr)
86 stub WSCGetProviderPath 86 stdcall WSCGetProviderPath(ptr ptr ptr ptr)
87 stub WSCInstallNameSpace 87 stdcall WSCInstallNameSpace(wstr wstr long long ptr)
88 stdcall WSCInstallProvider(ptr wstr ptr long ptr) 88 stdcall WSCInstallProvider(ptr wstr ptr long ptr)
89 stdcall WSCUnInstallNameSpace(ptr) 89 stdcall WSCUnInstallNameSpace(ptr)
90 stub WSCWriteNameSpaceOrder 90 stub WSCWriteNameSpaceOrder
91 stub WSCWriteProviderOrder 91 stdcall WSCWriteProviderOrder(ptr long)
# 92 ~ 100 UNKNOWN # 92 ~ 100 UNKNOWN
......
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