From b7309559e8f0566bda88220d0987f4e5b43e1e1d Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Sun, 14 Mar 2021 03:50:20 +0700 Subject: [PATCH] Fix FlatOut Head On multiplayer. --- Core/HLE/sceNetAdhoc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index c224b8f7be..c88a11dd60 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -1629,7 +1629,7 @@ static int sceNetAdhocPdpRecv(int id, void *addr, void * port, void *buf, void * socket->nonblocking = flag; // Valid Arguments - if (saddr != NULL && port != NULL && buf != NULL && len != NULL && *len > 0) { + if (saddr != NULL && port != NULL && buf != NULL && len != NULL) { #ifndef PDP_DIRTY_MAGIC // Schedule Timeout Removal //if (flag == 1) timeout = 0; @@ -1686,7 +1686,7 @@ static int sceNetAdhocPdpRecv(int id, void *addr, void * port, void *buf, void * memcpy(buf, dummyPeekBuf64k, std::min(received, *len)); if (received != SOCKET_ERROR && *len < received) { - WARN_LOG(SCENET, "sceNetAdhocPdpRecv[%i:%u]: Peeked %u/%u bytes from %s:%u\n", id, getLocalPort(pdpsocket.id), received, *len, ip2str(sin.sin_addr).c_str(), ntohs(sin.sin_port)); + INFO_LOG(SCENET, "sceNetAdhocPdpRecv[%i:%u]: Peeked %u/%u bytes from %s:%u\n", id, getLocalPort(pdpsocket.id), received, *len, ip2str(sin.sin_addr).c_str(), ntohs(sin.sin_port)); *len = received; // Peer MAC