From c60757b7251db168fc507887d35501b709bfd586 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 19 Feb 2017 11:44:18 +0000 Subject: [PATCH] [WS2_32] - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/ws2_32/src/addrinfo.c b/reactos/dll/win32/ws2_32/src/addrinfo.c index f3dd3d50119..14f5d874fc8 100644 --- a/reactos/dll/win32/ws2_32/src/addrinfo.c +++ b/reactos/dll/win32/ws2_32/src/addrinfo.c @@ -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 */