Explorar el Código

Discard higher 32-bits of IPC message magic and command number (#911)

gdkchan hace 6 años
padre
commit
793f38b9aa
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Ryujinx.HLE/HOS/Ipc/IpcHandler.cs

+ 2 - 2
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)
                     {