check for HandleDesc (#112)

HandleDesc can be null, make sure to check for that.

Co-authored-by: LotP1 <68976644+LotP1@users.noreply.github.com>
Reviewed-on: https://git.ryujinx.app/projects/Ryubing/pulls/112
This commit is contained in:
LotP
2026-05-25 13:43:35 +00:00
parent b2310823c9
commit 83d8e855d5

View File

@@ -16,7 +16,7 @@ namespace Ryujinx.HLE.HOS
public IpcMessage Response { get; } public IpcMessage Response { get; }
public BinaryReader RequestData { get; } public BinaryReader RequestData { get; }
public BinaryWriter ResponseData { 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( public ServiceCtx(
Switch device, Switch device,