Fixed a typo where the value of outBytesWritten was being clamped incorrectly.

This commit is contained in:
Brian Smith 2017-10-23 17:00:16 -04:00
parent 4fdd0c2093
commit 0c604eaf87

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();