aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Ipc/IpcMessage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Ipc/IpcMessage.cs')
-rw-r--r--Ryujinx.HLE/HOS/Ipc/IpcMessage.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/Ryujinx.HLE/HOS/Ipc/IpcMessage.cs b/Ryujinx.HLE/HOS/Ipc/IpcMessage.cs
index 135a0a1f..9fe3ae60 100644
--- a/Ryujinx.HLE/HOS/Ipc/IpcMessage.cs
+++ b/Ryujinx.HLE/HOS/Ipc/IpcMessage.cs
@@ -82,14 +82,18 @@ namespace Ryujinx.HLE.HOS.Ipc
long recvListPos = reader.BaseStream.Position + rawDataSize;
- long pad0 = GetPadSize16(reader.BaseStream.Position + cmdPtr);
-
- if (rawDataSize != 0)
+ // only HIPC have the padding requirements.
+ if (Type < IpcMessageType.TipcCloseSession)
{
- rawDataSize -= (int)pad0;
- }
+ long pad0 = GetPadSize16(reader.BaseStream.Position + cmdPtr);
+
+ if (rawDataSize != 0)
+ {
+ rawDataSize -= (int)pad0;
+ }
- reader.BaseStream.Seek(pad0, SeekOrigin.Current);
+ reader.BaseStream.Seek(pad0, SeekOrigin.Current);
+ }
int recvListCount = recvListFlags - 2;