From f7ef80e544278752c13e26c156e45719657f966c Mon Sep 17 00:00:00 2001 From: ParantezTech <12572227+par274@users.noreply.github.com> Date: Tue, 6 Oct 2026 13:44:48 +0300 Subject: [PATCH] [Kernel] Publish semaphore handles as 64-bit values Co-authored-by: Sekai <140012992+igettingit@users.noreply.github.com> --- src/SharpEmu.Libs/Kernel/KernelSemaphoreCompatExports.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharpEmu.Libs/Kernel/KernelSemaphoreCompatExports.cs b/src/SharpEmu.Libs/Kernel/KernelSemaphoreCompatExports.cs index 5dfe103..24c4180 100644 --- a/src/SharpEmu.Libs/Kernel/KernelSemaphoreCompatExports.cs +++ b/src/SharpEmu.Libs/Kernel/KernelSemaphoreCompatExports.cs @@ -73,7 +73,7 @@ public static class KernelSemaphoreCompatExports Count = initialCount, }; - if (!TryWriteUInt32(ctx, semaphoreAddress, handle)) + if (!ctx.TryWriteUInt64(semaphoreAddress, handle)) { _semaphores.TryRemove(handle, out _); return SetReturn(ctx, OrbisGen2Result.ORBIS_GEN2_ERROR_MEMORY_FAULT);