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);