From f6fcef483fa5696a36ceb7bb5bd5ce206d76ce60 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 30 May 2021 15:44:59 -0300 Subject: [PATCH] Fix inverted low/high mask value on GetThreadCoreMask32 syscall (#2325) --- Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs index b57175a369..97915d14c9 100644 --- a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs +++ b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall32.cs @@ -333,8 +333,8 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall { KernelResult result = _syscall.GetThreadCoreMask(handle, out preferredCore, out long affinityMask); - affinityMaskLow = (int)(affinityMask >> 32); - affinityMaskHigh = (int)(affinityMask & uint.MaxValue); + affinityMaskLow = (int)(affinityMask & uint.MaxValue); + affinityMaskHigh = (int)(affinityMask >> 32); return result; }