0
0
Fork 0

Fix inverted low/high mask value on GetThreadCoreMask32 syscall (#2325)

This commit is contained in:
gdkchan 2021-05-30 15:44:59 -03:00 committed by GitHub
parent 9d7627af64
commit f6fcef483f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -333,8 +333,8 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall
{ {
KernelResult result = _syscall.GetThreadCoreMask(handle, out preferredCore, out long affinityMask); KernelResult result = _syscall.GetThreadCoreMask(handle, out preferredCore, out long affinityMask);
affinityMaskLow = (int)(affinityMask >> 32); affinityMaskLow = (int)(affinityMask & uint.MaxValue);
affinityMaskHigh = (int)(affinityMask & uint.MaxValue); affinityMaskHigh = (int)(affinityMask >> 32);
return result; return result;
} }