From 43b4f3bf12b5f6cf50c315d0f751df473e7c6243 Mon Sep 17 00:00:00 2001 From: LotP Date: Mon, 25 May 2026 13:43:35 +0000 Subject: [PATCH] check for HandleDesc HandleDesc can be null, make sure to check for that. Co-authored-by: LotP1 <68976644+LotP1@users.noreply.github.com> --- src/Ryujinx.HLE/HOS/ServiceCtx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/HOS/ServiceCtx.cs b/src/Ryujinx.HLE/HOS/ServiceCtx.cs index 200afaf5e..881ea2fe3 100644 --- a/src/Ryujinx.HLE/HOS/ServiceCtx.cs +++ b/src/Ryujinx.HLE/HOS/ServiceCtx.cs @@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS public IpcMessage Response { get; } public BinaryReader RequestData { get; } public BinaryWriter ResponseData { get; } - public ulong ClientProcessId => Request.HandleDesc.HasPId ? Request.HandleDesc.PId : Process.Pid; + public ulong ClientProcessId => Request.HandleDesc is { HasPId: true } ? Request.HandleDesc.PId : Process.Pid; public ServiceCtx( Switch device,