Marcus Meissner : winsock: getaddrinfo return codes

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 12 06:44:46 CST 2005


Module: wine
Branch: refs/heads/master
Commit: 8e203745f4834ea3088fbbb9fea2c0f92807b1f7
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=8e203745f4834ea3088fbbb9fea2c0f92807b1f7

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Dec 12 11:55:33 2005 +0100

winsock: getaddrinfo return codes
Adjust return code EAI_NODATA to WSAHOST_NOT_FOUND, like windows does
it.

---

 include/ws2tcpip.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h
index 642808c..90a224b 100644
--- a/include/ws2tcpip.h
+++ b/include/ws2tcpip.h
@@ -182,7 +182,7 @@ typedef struct _INTERFACE_INFO
 # define EAI_FAIL	WSANO_RECOVERY
 # define EAI_FAMILY	WSAEAFNOSUPPORT
 # define EAI_MEMORY	WSA_NOT_ENOUGH_MEMORY
-# define EAI_NODATA	WSANO_DATA
+# define EAI_NODATA	EAI_NONAME
 # define EAI_NONAME	WSAHOST_NOT_FOUND
 # define EAI_SERVICE	WSATYPE_NOT_FOUND
 # define EAI_SOCKTYPE	WSAESOCKTNOSUPPORT
@@ -196,7 +196,7 @@ typedef struct _INTERFACE_INFO
 # define WS_EAI_FAIL	WSANO_RECOVERY
 # define WS_EAI_FAMILY	WSAEAFNOSUPPORT
 # define WS_EAI_MEMORY	WSA_NOT_ENOUGH_MEMORY
-# define WS_EAI_NODATA	WSANO_DATA
+# define WS_EAI_NODATA	WS_EAI_NONAME
 # define WS_EAI_NONAME	WSAHOST_NOT_FOUND
 # define WS_EAI_SERVICE	WSATYPE_NOT_FOUND
 # define WS_EAI_SOCKTYPE	WSAESOCKTNOSUPPORT




More information about the wine-cvs mailing list