Marcus Meissner : winsock: getaddrinfo - return code mapping.

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


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

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

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 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c
index e67363b..2fc7d37 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;
 }
 




More information about the wine-cvs mailing list