Commit 69ab564f authored by Lauri Kenttä's avatar Lauri Kenttä Committed by Alexandre Julliard

ws2_32/tests: Make sure that a structure is initialized (LLVM/Clang).

parent 717bd664
......@@ -3937,6 +3937,8 @@ static void test_WSARecv(void)
DWORD dwret;
BOOL bret;
memset(&ov, 0, sizeof(ov));
tcp_socketpair(&src, &dest);
if (src == INVALID_SOCKET || dest == INVALID_SOCKET)
{
......@@ -3948,7 +3950,6 @@ static void test_WSARecv(void)
bufs.buf = buf;
flags = 0;
memset(&ov, 0, sizeof(ov));
ov.hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
ok(ov.hEvent != NULL, "could not create event object, errno = %d\n", GetLastError());
if (!ov.hEvent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment