Jacek Caban : ws2_32: Added GetAddrInfoExCancel stub implementation.

Alexandre Julliard julliard at winehq.org
Thu May 25 14:42:15 CDT 2017


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed May 24 21:01:47 2017 +0200

ws2_32: Added GetAddrInfoExCancel stub implementation.

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

---

 dlls/ws2_32/socket.c    | 9 +++++++++
 dlls/ws2_32/ws2_32.spec | 1 +
 include/ws2tcpip.h      | 1 +
 3 files changed, 11 insertions(+)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 44bd667..1524192 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -6813,6 +6813,15 @@ int WINAPI GetAddrInfoExW(const WCHAR *name, const WCHAR *servname, DWORD namesp
 }
 
 /***********************************************************************
+ *		GetAddrInfoExCancel     (WS2_32.@)
+ */
+int WINAPI GetAddrInfoExCancel(HANDLE *handle)
+{
+    FIXME("(%p)\n", handle);
+    return WSA_INVALID_HANDLE;
+}
+
+/***********************************************************************
  *		GetAddrInfoW		(WS2_32.@)
  */
 int WINAPI GetAddrInfoW(LPCWSTR nodename, LPCWSTR servname, const ADDRINFOW *hints, PADDRINFOW *res)
diff --git a/dlls/ws2_32/ws2_32.spec b/dlls/ws2_32/ws2_32.spec
index df5e9d3..db34fc1 100644
--- a/dlls/ws2_32/ws2_32.spec
+++ b/dlls/ws2_32/ws2_32.spec
@@ -52,6 +52,7 @@
 
 @ stdcall FreeAddrInfoExW(ptr)
 @ stdcall FreeAddrInfoW(ptr)
+@ stdcall GetAddrInfoExCancel(ptr)
 @ stdcall GetAddrInfoExW(wstr wstr long ptr ptr ptr ptr ptr ptr ptr)
 @ stdcall GetAddrInfoW(wstr wstr ptr ptr)
 @ stdcall GetNameInfoW(ptr long ptr long ptr long long)
diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h
index e14a660..934c727 100644
--- a/include/ws2tcpip.h
+++ b/include/ws2tcpip.h
@@ -178,6 +178,7 @@ int WINAPI  GetAddrInfoExA(const char*,const char*,DWORD,GUID*,const ADDRINFOEXA
 int WINAPI  GetAddrInfoExW(const WCHAR*,const WCHAR*,DWORD,GUID*, const ADDRINFOEXW*,ADDRINFOEXW**,struct timeval*,
                            OVERLAPPED*,LPLOOKUPSERVICE_COMPLETION_ROUTINE,HANDLE*);
 #define     GetAddrInfoEx WINELIB_NAME_AW(GetAddrInfoExW)
+int WINAPI  GetAddrInfoExCancel(HANDLE*);
 int WINAPI  WS(getnameinfo)(const SOCKADDR*,WS(socklen_t),PCHAR,DWORD,PCHAR,DWORD,INT);
 #define     GetNameInfoA WS(getnameinfo)
 INT WINAPI  GetNameInfoW(const SOCKADDR*,WS(socklen_t),PWCHAR,DWORD,PWCHAR,DWORD,INT);




More information about the wine-cvs mailing list