Explorar o código

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

gdkchan %!s(int64=2) %!d(string=hai) anos
pai
achega
3e5c211394
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/Ryujinx.Horizon/Sdk/Sf/Hipc/ServerManager.cs

+ 4 - 1
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)
                 {