mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Merge pull request #2267 from FernandoS27/fix-2238
Fix crash caused by #2238.
This commit is contained in:
		
						commit
						872a7bee72
					
				@ -314,8 +314,9 @@ void Thread::UpdatePriority() {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Ensure that the thread is within the correct location in the waiting list.
 | 
					    // Ensure that the thread is within the correct location in the waiting list.
 | 
				
			||||||
 | 
					    auto old_owner = lock_owner;
 | 
				
			||||||
    lock_owner->RemoveMutexWaiter(this);
 | 
					    lock_owner->RemoveMutexWaiter(this);
 | 
				
			||||||
    lock_owner->AddMutexWaiter(this);
 | 
					    old_owner->AddMutexWaiter(this);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Recursively update the priority of the thread that depends on the priority of this one.
 | 
					    // Recursively update the priority of the thread that depends on the priority of this one.
 | 
				
			||||||
    lock_owner->UpdatePriority();
 | 
					    lock_owner->UpdatePriority();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user