Author: cwittich
Date: Thu Jul 17 03:07:37 2008
New Revision: 34560
URL:
http://svn.reactos.org/svn/reactos?rev=34560&view=rev
Log:
fix for getaddrinfo
patch by Yuri Sidorov <jura at cp-lab dot com>
Modified:
trunk/reactos/dll/win32/ws2_32/misc/ns.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/ns.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/ns.c…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/misc/ns.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/misc/ns.c [iso-8859-1] Thu Jul 17 03:07:37 2008
@@ -1427,7 +1427,9 @@
return WSAHOST_NOT_FOUND;
port = se->s_port;
}
-
+ else
+ port = htons(port);
+
if (nodename)
{
/* Is it an IPv6 address? */