From 793f38b9aadd3fd33240eadf41ed96eb8ed14611 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 30 Jan 2020 17:43:47 -0300 Subject: [PATCH] Discard higher 32-bits of IPC message magic and command number (#911) --- Ryujinx.HLE/HOS/Ipc/IpcHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Ipc/IpcHandler.cs b/Ryujinx.HLE/HOS/Ipc/IpcHandler.cs index ee3ace68d2..4b201d1419 100644 --- a/Ryujinx.HLE/HOS/Ipc/IpcHandler.cs +++ b/Ryujinx.HLE/HOS/Ipc/IpcHandler.cs @@ -53,8 +53,8 @@ namespace Ryujinx.HLE.HOS.Ipc else if (request.Type == IpcMessageType.Control || request.Type == IpcMessageType.ControlWithContext) { - long magic = reqReader.ReadInt64(); - long cmdId = reqReader.ReadInt64(); + uint magic = (uint)reqReader.ReadUInt64(); + uint cmdId = (uint)reqReader.ReadUInt64(); switch (cmdId) {