From 7fb10cb4d0f76be7bfc200221092e87eefe648b2 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 9 May 2016 07:49:58 +0000 Subject: [PATCH] =?utf8?q?[WS2=5F32=5FNEW]=20-=20Use=20the=20correct=20siz?= =?utf8?q?e=20of=20ServiceBuffer=20in=20getnameinfo.=20Patch=20by=20V?= =?utf8?q?=C3=ADctor=20Mart=C3=ADnez=20Calvo.=20CID=20716150=20CORE-11214?= =?utf8?q?=20#resolve?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=71293 --- reactos/dll/win32/ws2_32_new/src/addrinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.17.1