From: Thomas Faber Date: Mon, 9 May 2016 07:49:58 +0000 (+0000) Subject: [WS2_32_NEW] X-Git-Tag: ReactOS-0.4.1^2~13 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=7fb10cb4d0f76be7bfc200221092e87eefe648b2;ds=sidebyside [WS2_32_NEW] - 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 --- diff --git a/reactos/dll/win32/ws2_32_new/src/addrinfo.c b/reactos/dll/win32/ws2_32_new/src/addrinfo.c index 3abae31065e..c7142136206 100644 --- a/reactos/dll/win32/ws2_32_new/src/addrinfo.c +++ b/reactos/dll/win32/ws2_32_new/src/addrinfo.c @@ -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 */