PINE: fix regressions introduced in #10448

This commit is contained in:
GovanifY 2024-01-08 21:16:44 +01:00 committed by refractionpcsx2
parent 59072272a9
commit 72787d103f
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ bool PINEServer::Initialize(int slot)
// yes very good windows s/sun/sin/g sure is fine
server.sin_family = AF_INET;
// localhost only
server.sin_addr.s_addr = INADDR_LOOPBACK;
server.sin_addr.s_addr = inet_addr("127.0.0.1");
server.sin_port = htons(slot);
if (bind(m_sock, (struct sockaddr*)&server, sizeof(server)) == SOCKET_ERROR)

View File

@ -189,7 +189,7 @@ protected:
*/
static inline bool SafetyChecks(u32 command_len, int command_size, u32 reply_len, int reply_size = 0, u32 buf_size = MAX_IPC_SIZE - 1)
{
return ((command_len + command_size) > buf_size ||
return !((command_len + command_size) > buf_size ||
(reply_len + reply_size) >= MAX_IPC_RETURN_SIZE);
}