Minor fixes
This commit is contained in:
@@ -361,8 +361,9 @@ namespace Nz
|
||||
NazaraAssert(m_handle != SocketImpl::InvalidHandle, "Invalid handle");
|
||||
NazaraAssert(buffer && size > 0, "Invalid buffer");
|
||||
|
||||
CallOnExit updateSent;
|
||||
std::size_t totalByteSent = 0;
|
||||
|
||||
CallOnExit updateSent;
|
||||
if (sent)
|
||||
{
|
||||
updateSent.Reset([sent, &totalByteSent] ()
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace Nz
|
||||
{
|
||||
NazaraAssert(handle != InvalidHandle, "Invalid handle");
|
||||
|
||||
if (GetLastError(handle, nullptr) != SocketError::Internal)
|
||||
if (GetLastError(handle, nullptr) == SocketError::Internal)
|
||||
NazaraWarning("Failed to clear socket error code: " + Error::GetLastSystemError(WSAGetLastError()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user