diff --git a/pcsx2/PINE.cpp b/pcsx2/PINE.cpp index 0fb6e721ed..869c59e300 100644 --- a/pcsx2/PINE.cpp +++ b/pcsx2/PINE.cpp @@ -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) diff --git a/pcsx2/PINE.h b/pcsx2/PINE.h index 40b7d3ff4e..304f705ccf 100644 --- a/pcsx2/PINE.h +++ b/pcsx2/PINE.h @@ -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); }