diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2024-01-29 21:19:39 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-29 21:19:39 -0300 |
| commit | ccbbaddbcb6a0eb0cee0d2e2482546611237bee3 (patch) | |
| tree | be5c195001f9efc694ee554e25b869a2b514fe26 /src/Ryujinx.Horizon/Sdk/Sf/HipcCommandProcessor.cs | |
| parent | 8bf102d2cd744f56e2a4839fa0391acda3e201b8 (diff) | |
Fix exception when trying to read output pointer buffer size (#6221)
* Fix exception when trying to read output pointer buffer size
* Better name
Diffstat (limited to 'src/Ryujinx.Horizon/Sdk/Sf/HipcCommandProcessor.cs')
| -rw-r--r-- | src/Ryujinx.Horizon/Sdk/Sf/HipcCommandProcessor.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Horizon/Sdk/Sf/HipcCommandProcessor.cs b/src/Ryujinx.Horizon/Sdk/Sf/HipcCommandProcessor.cs index bb9b37e2..f7694a74 100644 --- a/src/Ryujinx.Horizon/Sdk/Sf/HipcCommandProcessor.cs +++ b/src/Ryujinx.Horizon/Sdk/Sf/HipcCommandProcessor.cs @@ -206,7 +206,7 @@ namespace Ryujinx.Horizon.Sdk.Sf } else { - var data = MemoryMarshal.Cast<uint, byte>(context.Request.Data.DataWords); + var data = MemoryMarshal.Cast<uint, byte>(context.Request.Data.DataWordsPadded); var recvPointerSizes = MemoryMarshal.Cast<byte, ushort>(data[runtimeMetadata.UnfixedOutPointerSizeOffset..]); size = recvPointerSizes[unfixedRecvPointerIndex++]; |
