From 5fb621e91fa0221d05e129b48ab5f40e3dc92e47 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Sun, 21 Apr 2024 16:08:38 +0100 Subject: [PATCH] DEV9: Fix incorrect error check on TCP send --- pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp b/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp index 3c9695dbc9139..7316eddd7fb91 100644 --- a/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp +++ b/pcsx2/DEV9/Sessions/TCP_Session/TCP_Session_Out.cpp @@ -337,7 +337,7 @@ namespace Sessions { int ret = send(client, reinterpret_cast(&payload->data[sent]), payload->GetLength() - sent, 0); - if (sent == SOCKET_ERROR) + if (ret == SOCKET_ERROR) { #ifdef _WIN32 const int err = WSAGetLastError();