[ros-diffs] [cwittich] 34560: fix for getaddrinfo patch by Yuri Sidorov <jura at cp-lab dot com>

cwittich at svn.reactos.org cwittich at svn.reactos.org
Thu Jul 17 10:07:38 CEST 2008


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?rev=34560&r1=34559&r2=34560&view=diff
==============================================================================
--- 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? */



More information about the Ros-diffs mailing list