Merge pull request #2106 from block8437/development

Fixed a typo where the value of outBytesWritten was being clamped incorrectly.
This commit is contained in:
Areloch 2017-10-28 00:38:19 -05:00 committed by GitHub
commit 48f50d19c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1672,7 +1672,7 @@ Net::Error Net::send(NetSocket handleFd, const U8 *buffer, S32 bufferSize, S32 *
if (outBytesWritten)
{
*outBytesWritten = outBytesWritten < 0 ? 0 : bytesWritten;
*outBytesWritten = *outBytesWritten < 0 ? 0 : bytesWritten;
}
return PlatformNetState::getLastError();