Module: wine Branch: master Commit: fc5884c23296c0f121442d0832b0187074e95a10 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc5884c23296c0f121442d0832...
Author: Bruno Jesus 00cpxxx@gmail.com Date: Thu Dec 26 17:57:05 2013 -0200
ws2_32: Do not convert EAI_xxx return in case of success.
---
dlls/ws2_32/socket.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index cafe103..39912bf 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -5365,6 +5365,8 @@ static int convert_aiflag_u2w(int unixflags) { static int convert_eai_u2w(int unixret) { int i;
+ if (!unixret) return 0; + for (i=0;ws_eai_map[i][0];i++) if (ws_eai_map[i][1] == unixret) return ws_eai_map[i][0];