DEV9: Fix incorrect error check on TCP send

This commit is contained in:
TheLastRar 2024-04-21 16:08:38 +01:00 committed by lightningterror
parent 894f2f145c
commit ba16a90290
1 changed files with 1 additions and 1 deletions

View File

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