Jacek Caban : ws2_32: Added partial GetAddrInfoExW implementation.

Alexandre Julliard julliard at winehq.org
Wed Aug 2 15:31:59 CDT 2017


Module: wine
Branch: master
Commit: a17ac691bc0618fdf66e3c2e23ee99dcc6b66b4c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a17ac691bc0618fdf66e3c2e23ee99dcc6b66b4c

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Aug  1 18:29:39 2017 +0200

ws2_32: Added partial GetAddrInfoExW implementation.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ws2_32/socket.c | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 37931a5..b47e84d 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -6901,9 +6901,30 @@ int WINAPI GetAddrInfoExW(const WCHAR *name, const WCHAR *servname, DWORD namesp
         const ADDRINFOEXW *hints, ADDRINFOEXW **result, struct timeval *timeout, OVERLAPPED *overlapped,
         LPLOOKUPSERVICE_COMPLETION_ROUTINE completion_routine, HANDLE *handle)
 {
-    FIXME("(%s %s %x %s %p %p %p %p %p %p)\n", debugstr_w(name), debugstr_w(servname), namespace,
+    int ret;
+
+    TRACE("(%s %s %x %s %p %p %p %p %p %p)\n", debugstr_w(name), debugstr_w(servname), namespace,
           debugstr_guid(namespace_id), hints, result, timeout, overlapped, completion_routine, handle);
-    return WSAHOST_NOT_FOUND;
+
+    if (namespace != NS_DNS)
+        FIXME("Unsupported namespace %u\n", namespace);
+    if (namespace_id)
+        FIXME("Unsupported naemspace_id %s\n", debugstr_guid(namespace_id));
+    if (hints)
+        FIXME("Unsupported hints\n");
+    if (timeout)
+        FIXME("Unsupported timeout\n");
+    if (overlapped)
+        FIXME("Unsupported overlapped\n");
+    if (completion_routine)
+        FIXME("Unsupported completion_routine\n");
+    if (handle)
+        FIXME("Unsupported cancel handle\n");
+
+    ret = WS_getaddrinfoW(name, servname, NULL, result);
+    if (ret) return ret;
+    if (handle) *handle = (HANDLE)0xdeadbeef;
+    return 0;
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list