Преглед изворни кода

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

gdkchan пре 6 година
родитељ
комит
793f38b9aa
1 измењених фајлова са 2 додато и 2 уклоњено
  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 ||
                 else if (request.Type == IpcMessageType.Control ||
                          request.Type == IpcMessageType.ControlWithContext)
                          request.Type == IpcMessageType.ControlWithContext)
                 {
                 {
-                    long magic = reqReader.ReadInt64();
-                    long cmdId = reqReader.ReadInt64();
+                    uint magic = (uint)reqReader.ReadUInt64();
+                    uint cmdId = (uint)reqReader.ReadUInt64();
 
 
                     switch (cmdId)
                     switch (cmdId)
                     {
                     {