From b364f81218805bf6fdc63fef7a18fa806c137785 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 12 Dec 2005 11:55:11 +0100 Subject: [PATCH] winsock: getaddrinfo - return code mapping. convert_eai_u2w should map from unix to windows, not the other way round (spotted by Dominic Wise). --- dlls/winsock/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index e67363ba017..2fc7d3741e7 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -3106,8 +3106,8 @@ static int convert_eai_u2w(int unixret) { int i; for (i=0;ws_eai_map[i][0];i++) - if (ws_eai_map[i][0] == unixret) - return ws_eai_map[i][1]; + if (ws_eai_map[i][1] == unixret) + return ws_eai_map[i][0]; return unixret; }