From 3e5c2113947d9de644c840377cf46c2a338d1edc Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 19 Aug 2023 15:16:59 -0300 Subject: [PATCH] Fix debug assert on services without pointer buffer (#5599) --- src/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {