From: Paul Gofman <pgofman@codeweavers.com> --- dlls/ws2_32/protocol.c | 15 +++++++++++++-- dlls/ws2_32/ws2_32.spec | 1 + include/ws2spi.h | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/ws2_32/protocol.c b/dlls/ws2_32/protocol.c index 647409d84a3..cdc01a82683 100644 --- a/dlls/ws2_32/protocol.c +++ b/dlls/ws2_32/protocol.c @@ -2389,9 +2389,20 @@ int WINAPI WSCSetApplicationCategory( const WCHAR *path, DWORD len, const WCHAR */ int WINAPI WSCEnumProtocols( int *protocols, WSAPROTOCOL_INFOW *info, DWORD *len, int *err ) { - int ret = WSAEnumProtocolsW( protocols, info, len ); + int ret; - if (ret == SOCKET_ERROR) *err = WSAENOBUFS; + TRACE( "protocols %p, info %p, len %p, err %p.\n", protocols, info, len, err ); + ret = WSAEnumProtocolsW( protocols, info, len ); + if (ret == SOCKET_ERROR) *err = WSAENOBUFS; return ret; } + + +/*********************************************************************** + * WSCEnumProtocols32 (ws2_32.@) + */ +int WINAPI WSCEnumProtocols32( int *protocols, WSAPROTOCOL_INFOW *info, DWORD *len, int *err ) +{ + return WSCEnumProtocols( protocols, info, len, err ); +} diff --git a/dlls/ws2_32/ws2_32.spec b/dlls/ws2_32/ws2_32.spec index 1bdcd60cc7b..1e5e0b3b873 100644 --- a/dlls/ws2_32/ws2_32.spec +++ b/dlls/ws2_32/ws2_32.spec @@ -121,6 +121,7 @@ @ stdcall WSCDeinstallProvider(ptr ptr) @ stdcall WSCEnableNSProvider(ptr long) @ stdcall WSCEnumProtocols(ptr ptr ptr ptr) +@ stdcall WSCEnumProtocols32(ptr ptr ptr ptr) @ stdcall WSCGetApplicationCategory(wstr long wstr long ptr ptr) @ stdcall WSCGetProviderInfo(ptr long ptr ptr long ptr) @ stdcall WSCGetProviderPath(ptr ptr ptr ptr) diff --git a/include/ws2spi.h b/include/ws2spi.h index f2d21068a4f..0eef1cdc76a 100644 --- a/include/ws2spi.h +++ b/include/ws2spi.h @@ -45,6 +45,7 @@ INT WINAPI WSCInstallProvider(const LPGUID,LPCWSTR,const LPWSAPROTOCOL_INFO INT WINAPI WSCDeinstallProvider(LPGUID,LPINT); INT WINAPI WSCEnableNSProvider(LPGUID,BOOL); INT WINAPI WSCEnumProtocols(LPINT,LPWSAPROTOCOL_INFOW,LPDWORD,LPINT); +INT WINAPI WSCEnumProtocols32(LPINT,LPWSAPROTOCOL_INFOW,LPDWORD,LPINT); INT WINAPI WSCGetApplicationCategory(LPCWSTR,DWORD,LPCWSTR,DWORD,DWORD*,LPINT); INT WINAPI WSCGetProviderInfo(LPGUID,WSC_PROVIDER_INFO_TYPE,PBYTE,size_t*,DWORD,LPINT); INT WINAPI WSCGetProviderPath(LPGUID,LPWSTR,LPINT,LPINT); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/11176