Skip to content

Commit

Permalink
DEV9: Fix incorrect error check on TCP send
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastRar committed Apr 23, 2024
1 parent 13c1856 commit 5fb621e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5fb621e

Please sign in to comment.