[WS2_32]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 19 Feb 2017 11:44:18 +0000 (11:44 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 19 Feb 2017 11:44:18 +0000 (11:44 +0000)
- Fix wrong ServLength in getnameinfo, again, since it got lost in the ws2_32_new work. CID 716150
CORE-11214

svn path=/trunk/; revision=73839

reactos/dll/win32/ws2_32/src/addrinfo.c

index f3dd3d5..14f5d87 100644 (file)
@@ -1028,7 +1028,7 @@ getnameinfo(const struct sockaddr FAR *sa,
     {
         /* Setup the data for it */
         ServiceString = ServiceBuffer;
-        ServLength = sizeof(ServiceBuffer) - 1;
+        ServLength = sizeof(ServiceBuffer) / sizeof(WCHAR);
     }
   
     /* Now call the unicode function */