Skip to content

Commit

Permalink
PINE: fix regressions introduced in #10448
Browse files Browse the repository at this point in the history
  • Loading branch information
GovanifY authored and refractionpcsx2 committed Jan 8, 2024
1 parent 5907227 commit 72787d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pcsx2/PINE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pcsx2/PINE.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class PINEServer
*/
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);
}

Expand Down

0 comments on commit 72787d1

Please sign in to comment.