mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-19 15:52:01 +00:00
Fix debug assert on services without pointer buffer (#5599)
This commit is contained in:
parent
153b8bfc7c
commit
3e5c211394
1 changed files with 4 additions and 1 deletions
|
@ -30,8 +30,11 @@ namespace Ryujinx.Horizon.Sdk.Sf.Hipc
|
||||||
_maxSessions = maxSessions;
|
_maxSessions = maxSessions;
|
||||||
|
|
||||||
if (allocator != null)
|
if (allocator != null)
|
||||||
|
{
|
||||||
|
if (options.PointerBufferSize != 0)
|
||||||
{
|
{
|
||||||
_pointerBuffersBaseAddress = allocator.Allocate((ulong)maxSessions * (ulong)options.PointerBufferSize);
|
_pointerBuffersBaseAddress = allocator.Allocate((ulong)maxSessions * (ulong)options.PointerBufferSize);
|
||||||
|
}
|
||||||
|
|
||||||
if (options.CanDeferInvokeRequest)
|
if (options.CanDeferInvokeRequest)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue