aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-08-19 15:16:59 -0300
committerGitHub <noreply@github.com>2023-08-19 18:16:59 +0000
commit3e5c2113947d9de644c840377cf46c2a338d1edc (patch)
tree40724f69989bc0e78be9d2568430aef714805e41 /src
parent153b8bfc7c8c8711f8c2ce40f88085355d870b6a (diff)
Fix debug assert on services without pointer buffer (#5599)1.1.998
Diffstat (limited to 'src')
-rw-r--r--src/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerManager.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerManager.cs b/src/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerManager.cs
index 9ac2a337..65a43303 100644
--- a/src/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerManager.cs
+++ b/src/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerManager.cs
@@ -31,7 +31,10 @@ namespace Ryujinx.Horizon.Sdk.Sf.Hipc
if (allocator != null)
{
- _pointerBuffersBaseAddress = allocator.Allocate((ulong)maxSessions * (ulong)options.PointerBufferSize);
+ if (options.PointerBufferSize != 0)
+ {
+ _pointerBuffersBaseAddress = allocator.Allocate((ulong)maxSessions * (ulong)options.PointerBufferSize);
+ }
if (options.CanDeferInvokeRequest)
{