From 9a9ee747611fdf46acac2f07f9c707e3d8d25408 Mon Sep 17 00:00:00 2001 From: gzk_47 <98312059+gzk47@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:34:56 +0800 Subject: [PATCH] ts: Fix tsOpenSession compile error with serviceDispatchIn --- nx/source/services/ts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nx/source/services/ts.c b/nx/source/services/ts.c index be36ba8ba..a8236e2b3 100644 --- a/nx/source/services/ts.c +++ b/nx/source/services/ts.c @@ -57,7 +57,8 @@ Result tsOpenSession(TsSession *s, TsDeviceCode device_code) { if (hosversionBefore(8,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); - return serviceDispatchIn(&g_tsSrv, 4, ((u32)device_code), + u32 dev_code = ((u32)device_code); + return serviceDispatchIn(&g_tsSrv, 4, dev_code, .out_num_objects = 1, .out_objects = &s->s, );