Commit 6e6d79a5 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Merge branch '10.4' into 10.5

parents ade8253c f1c35a99
......@@ -326,7 +326,7 @@ static bool IsPortInUse(unsigned short port)
}
bool in_use = false;
if (bind(ip_sock, a->ai_addr, a->ai_addrlen) == SOCKET_ERROR)
if (bind(ip_sock, a->ai_addr, (int)a->ai_addrlen) == SOCKET_ERROR)
{
DWORD last_error = WSAGetLastError();
in_use = (last_error == WSAEADDRINUSE || last_error == WSAEACCES);
......
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