Author: akhaldi Date: Mon May 11 13:43:37 2015 New Revision: 67663
URL: http://svn.reactos.org/svn/reactos?rev=67663&view=rev Log: [WS2_32] Apply Wine commit 51e7732 by Piotr Caban: Fix ai_canonname buffer allocation in addrinfo_AtoW.
Modified: trunk/reactos/dll/win32/ws2_32/wine/socket.c
Modified: trunk/reactos/dll/win32/ws2_32/wine/socket.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/wine/socke... ============================================================================== --- trunk/reactos/dll/win32/ws2_32/wine/socket.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ws2_32/wine/socket.c [iso-8859-1] Mon May 11 13:43:37 2015 @@ -56,7 +56,7 @@ if (ai->ai_canonname) { int len = MultiByteToWideChar(CP_ACP, 0, ai->ai_canonname, -1, NULL, 0); - if (!(ret->ai_canonname = HeapAlloc(GetProcessHeap(), 0, len))) + if (!(ret->ai_canonname = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR)))) { HeapFree(GetProcessHeap(), 0, ret); return NULL;