diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index a07c5b423a5..8ca3a3e36c8 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -3235,8 +3235,8 @@ int WINAPI GetAddrInfoW(LPCWSTR nodename, LPCWSTR servname, const ADDRINFOW *hin return EAI_FAIL; } -int WINAPI WS_getnameinfo(const struct WS_sockaddr *sa, socklen_t salen, char *host, - DWORD hostlen, char *serv, DWORD servlen, int flags) +int WINAPI WS_getnameinfo(const SOCKADDR *sa, socklen_t salen, PCHAR host, + DWORD hostlen, PCHAR serv, DWORD servlen, INT flags) { #if HAVE_GETNAMEINFO int ret; diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h index 16efab6da96..9847dab23ee 100644 --- a/include/ws2tcpip.h +++ b/include/ws2tcpip.h @@ -215,7 +215,7 @@ int WINAPI WS(getaddrinfo)(const char*,const char*,const struct WS(addrinfo)*,s #define GetAddrInfoA WS(getaddrinfo) int WINAPI GetAddrInfoW(PCWSTR,PCWSTR,const ADDRINFOW*,PADDRINFOW*); #define GetAddrInfo WINELIB_NAME_AW(GetAddrInfo) -int WINAPI WS(getnameinfo)(const struct WS(sockaddr)*,socklen_t,char*,DWORD,char*,DWORD,int); +int WINAPI WS(getnameinfo)(const SOCKADDR*,socklen_t,PCHAR,DWORD,PCHAR,DWORD,INT); #define GetNameInfoA WS(getnameinfo) INT WINAPI GetNameInfoW(const SOCKADDR*,socklen_t,PWCHAR,DWORD,PWCHAR,DWORD,INT); #define GetNameInfo WINELIB_NAME_AW(GetNameInfo) diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api index aa1988359e7..8911a2dd92e 100644 --- a/tools/winapi/win32.api +++ b/tools/winapi/win32.api @@ -5347,6 +5347,7 @@ WSAESETSERVICEOP WSAEVENT int long +socklen_t u_long u_short @@ -5378,6 +5379,7 @@ LPWSAQUERYSETW LPWSASERVICECLASSINFOA LPWSASERVICECLASSINFOW PADDRINFOW * +SOCKADDR * WS_fd_set * int * struct WS_addrinfo * @@ -5394,6 +5396,7 @@ u_short * LPCSTR LPSTR +PCHAR char * %unknown