Commit 1e198e17 authored by Haidong Yu's avatar Haidong Yu Committed by Alexandre Julliard

ws2_32: Add missing LeaveCriticalSection.

parent 4eb3ab95
......@@ -494,7 +494,10 @@ static BOOL socket_list_add(SOCKET socket)
}
new_size = max(socket_list_size * 2, 8);
if (!(new_array = heap_realloc(socket_list, new_size * sizeof(*socket_list))))
{
LeaveCriticalSection(&cs_socket_list);
return FALSE;
}
socket_list = new_array;
memset(socket_list + socket_list_size, 0, (new_size - socket_list_size) * sizeof(*socket_list));
socket_list[socket_list_size] = socket;
......
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