PATCH: getaddrinfo - return code mapping

Marcus Meissner marcus at jet.franken.de
Mon Dec 12 01:41:46 CST 2005


Hi,

Ciao, Marcus

Changelog:
	convert_eai_u2w should map from unix to windows,
	not the other way round (spotted by Dominic Wise).

Index: dlls/winsock/socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.202
diff -u -p -r1.202 socket.c
--- dlls/winsock/socket.c	9 Dec 2005 12:19:48 -0000	1.202
+++ dlls/winsock/socket.c	12 Dec 2005 07:36:44 -0000
@@ -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-patches mailing list