git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57718
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//read message header
do
{
- m_socket->Read(m_signature,2 - m_infill);
+ m_socket->Read(m_signature + m_infill, 2 - m_infill);
if (m_socket->Error())
{
if (m_socket->LastError() != wxSOCKET_WOULDBLOCK)
m_written = 0;
LogWorker(wxString::Format("Message signature: len: %d, type: %s, size: %d (bytes)",chunks,type == 0xBE ? "b" : "kB",m_size));
break;
- } else
+ }
+ else
{
LogWorker(wxString::Format("Unknown test type %x",type));
m_socket->Close();