mirror of https://github.com/PCSX2/pcsx2.git
PINE: fix regressions introduced in #10448
This commit is contained in:
parent
59072272a9
commit
72787d103f
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue