mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
Fix GetUserDisableCount NRE (#3187)
This commit is contained in:
parent
fb7c80e928
commit
69b05f9918
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue