[WS2_32_NEW]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 9 May 2016 07:49:58 +0000 (07:49 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 9 May 2016 07:49:58 +0000 (07:49 +0000)
- Use the correct size of ServiceBuffer in getnameinfo. Patch by Víctor Martínez Calvo. CID 716150
CORE-11214 #resolve

svn path=/trunk/; revision=71293

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

index 3abae31..c714213 100644 (file)
@@ -937,7 +937,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 */