1
0
forked from MeloNX/MeloNX

Fix debug assert on services without pointer buffer (#5599)

This commit is contained in:
gdkchan 2023-08-19 15:16:59 -03:00 committed by GitHub
parent 838db2876b
commit 074a2a009e

View File

@ -31,7 +31,10 @@ namespace Ryujinx.Horizon.Sdk.Sf.Hipc
if (allocator != null) 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) if (options.CanDeferInvokeRequest)
{ {