Network/SocketImpl: Fix SetKeepAlive

Former-commit-id: 490857d9a34ed1492710666695965bc930691c0b
This commit is contained in:
Lynix 2015-11-13 18:21:26 +01:00
parent 3a4acd9584
commit 1b4ac70ac3
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ namespace Nz
keepAlive.keepalivetime = static_cast<ULONG>(msTime);
DWORD dummy; //< byteReturned
if (!WSAIoctl(handle, SIO_KEEPALIVE_VALS, &keepAlive, sizeof(keepAlive), nullptr, 0, &dummy, nullptr, nullptr))
if (WSAIoctl(handle, SIO_KEEPALIVE_VALS, &keepAlive, sizeof(keepAlive), nullptr, 0, &dummy, nullptr, nullptr) == SOCKET_ERROR)
{
if (error)
*error = TranslateWSAErrorToSocketError(WSAGetLastError());