Author: phater
Date: Thu May 25 15:57:38 2017
New Revision: 74655
URL:
http://svn.reactos.org/svn/reactos?rev=74655&view=rev
Log:
[WS2_32_APITESTS] Set the size of addr when calling getsockname ROSTESTS-278
Modified:
trunk/rostests/apitests/ws2_32/bind.c
Modified: trunk/rostests/apitests/ws2_32/bind.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ws2_32/bind.c?re…
==============================================================================
--- trunk/rostests/apitests/ws2_32/bind.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ws2_32/bind.c [iso-8859-1] Thu May 25 15:57:38 2017
@@ -77,6 +77,7 @@
else
{
ok_dec(WSAGetLastError(), 0);
+ AddrSize = sizeof(Addr);
Error = getsockname(Socket, (struct sockaddr *) &Addr, &AddrSize);
ok(Error == 0, "Error getsockname for test %d, Error %d\n", i,
Error);
ok_dec(WSAGetLastError(), 0);