1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-24 15:06:01 +00:00

Fix GetUserDisableCount NRE (#3187)

This commit is contained in:
gdkchan 2022-03-12 14:12:12 -03:00 committed by GitHub
parent fb7c80e928
commit 69b05f9918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -751,7 +751,8 @@ namespace Ryujinx.HLE.HOS.Kernel.Process
{ {
KThread currentThread = KernelStatic.GetCurrentThread(); KThread currentThread = KernelStatic.GetCurrentThread();
if (currentThread.Owner != null && if (currentThread.Context.Running &&
currentThread.Owner != null &&
currentThread.GetUserDisableCount() != 0 && currentThread.GetUserDisableCount() != 0 &&
currentThread.Owner.PinnedThreads[currentThread.CurrentCore] == null) currentThread.Owner.PinnedThreads[currentThread.CurrentCore] == null)
{ {