X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f4a0c5be34be837210768501c13dbcff81e533c..e370f4029e2fde627fc13c98fb82fe63894e4f89:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 56c601c617..9d3dffd789 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -358,6 +358,7 @@ bool wxSocketBase::Close() wxSocketBase& wxSocketBase::Read(char* buffer, size_t nbytes) { m_lcount = GetPushback(buffer, nbytes, FALSE); + nbytes -= m_lcount; // If we have got the whole needed buffer or if we don't want to // wait then it returns immediately.