mirror of https://github.com/PCSX2/pcsx2.git
DEV9: Fix incorrect error check on TCP send
This commit is contained in:
parent
894f2f145c
commit
ba16a90290
|
@ -337,7 +337,7 @@ namespace Sessions
|
|||
{
|
||||
int ret = send(client, reinterpret_cast<const char*>(&payload->data[sent]), payload->GetLength() - sent, 0);
|
||||
|
||||
if (sent == SOCKET_ERROR)
|
||||
if (ret == SOCKET_ERROR)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
const int err = WSAGetLastError();
|
||||
|
|
Loading…
Reference in New Issue