From 2a68e94f53c096ad15e09405020be0bb4aa68f6e Mon Sep 17 00:00:00 2001 From: hater <7element@mail.bg> Date: Mon, 9 Nov 2015 12:14:17 +0200 Subject: [PATCH] Fix addrinfo tests --- reactos/dll/win32/ws2_32_new/src/getxbyxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/ws2_32_new/src/getxbyxx.c b/reactos/dll/win32/ws2_32_new/src/getxbyxx.c index e8c861b..9b9648b 100644 --- a/reactos/dll/win32/ws2_32_new/src/getxbyxx.c +++ b/reactos/dll/win32/ws2_32_new/src/getxbyxx.c @@ -480,7 +480,7 @@ getservbyport(IN int port, Servent = 0; /* Normalize the error message */ - if(GetLastError() == WSATYPE_NOT_FOUND) SetLastError(WSANO_DATA); + if(GetLastError() == WSANO_DATA || GetLastError() == WSAHOST_NOT_FOUND) SetLastError(WSATYPE_NOT_FOUND); } /* Check if we received a newly allocated buffer; free it. */ @@ -552,7 +552,7 @@ getservbyname(IN const char FAR * name, Servent = 0; /* Normalize the error message */ - if(GetLastError() == WSATYPE_NOT_FOUND) SetLastError(WSANO_DATA); + if(GetLastError() == WSANO_DATA || GetLastError() == WSAHOST_NOT_FOUND) SetLastError(WSATYPE_NOT_FOUND); } /* Check if we received a newly allocated buffer; free it. */ -- 1.9.5.msysgit.0