Alistair Leslie-Hughes : ws2_32: Handle success in addrinfo_err_from_unix.

Alexandre Julliard julliard at winehq.org
Mon Aug 23 16:24:14 CDT 2021


Module: wine
Branch: master
Commit: d4f83ba77ffe32511005e346abadd5af92e03a51
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d4f83ba77ffe32511005e346abadd5af92e03a51

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Fri Aug 20 17:38:08 2021 +1000

ws2_32: Handle success in addrinfo_err_from_unix.

When unix_getnameinfo is called, we end up with a warning fixme for no reason.
0740:fixme:winsock:addrinfo_err_from_unix unhandled error 0

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ws2_32/unixlib.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ws2_32/unixlib.c b/dlls/ws2_32/unixlib.c
index a9a2b6939d9..25a38b46758 100644
--- a/dlls/ws2_32/unixlib.c
+++ b/dlls/ws2_32/unixlib.c
@@ -410,6 +410,7 @@ static int addrinfo_err_from_unix( int err )
 {
     switch (err)
     {
+        case 0:             return 0;
         case EAI_AGAIN:     return WS_EAI_AGAIN;
         case EAI_BADFLAGS:  return WS_EAI_BADFLAGS;
         case EAI_FAIL:      return WS_EAI_FAIL;




More information about the wine-cvs mailing list