Commit b364f812 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winsock: getaddrinfo - return code mapping.

convert_eai_u2w should map from unix to windows, not the other way round (spotted by Dominic Wise).
parent 6194255d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment