Просмотр исходного кода

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

gdkchan 6 лет назад
Родитель
Сommit
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 ||
                          request.Type == IpcMessageType.ControlWithContext)
                 {
-                    long magic = reqReader.ReadInt64();
-                    long cmdId = reqReader.ReadInt64();
+                    uint magic = (uint)reqReader.ReadUInt64();
+                    uint cmdId = (uint)reqReader.ReadUInt64();
 
                     switch (cmdId)
                     {