[PATCH 1/2] ws2_32: Implement InetNtopW.

Philipp Hoppermann plata at mailbox.org
Fri Jul 22 07:04:15 CDT 2016


Fixes "unimplemented function WS2_32.dll.InetNtopW"

At the moment, this fix just calls inet_ntop

Signed-off-by: Philipp Hoppermann <plata at mailbox.org>
---
 dlls/ws2_32/socket.c    | 8 ++++++++
 dlls/ws2_32/ws2_32.spec | 1 +
 2 files changed, 9 insertions(+)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index b0af3d7..0622060 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -7934,6 +7934,14 @@ INT WINAPI InetPtonW(INT family, PCWSTR addr, PVOID buffer)
 }
 
 /***********************************************************************
+*              InetNtopW                      (WS2_32.@)
+*/
+PCWSTR WINAPI InetNtopW(INT  family, PVOID addr, PWSTR stringBuf, SIZE_T stringBufSize)
+{
+    return inet_ntop(family, addr, stringBuf, stringBufSize);
+}
+
+/***********************************************************************
  *              WSAStringToAddressA                      (WS2_32.80)
  */
 INT WINAPI WSAStringToAddressA(LPSTR AddressString,
diff --git a/dlls/ws2_32/ws2_32.spec b/dlls/ws2_32/ws2_32.spec
index 7625f38..5dd7138 100644
--- a/dlls/ws2_32/ws2_32.spec
+++ b/dlls/ws2_32/ws2_32.spec
@@ -55,6 +55,7 @@
 @ stdcall GetAddrInfoW(wstr wstr ptr ptr)
 @ stdcall GetNameInfoW(ptr long ptr long ptr long long)
 @ stdcall InetPtonW(long wstr ptr)
+@ stdcall InetNtopW(long ptr ptr long)
 @ stdcall WSApSetPostRoutine(ptr)
 @ stdcall WPUCompleteOverlappedRequest(long ptr long long ptr)
 @ stdcall WSAAccept(long ptr ptr ptr long)
-- 
2.7.4




More information about the wine-patches mailing list