2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #6440 from bunnei/cancel-synch

kernel: svc: Add missing error check to CancelSynchronization.
This commit is contained in:
Mai M 2021-06-09 19:08:36 -04:00 committed by GitHub
commit 61c7a81ec8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,8 +449,8 @@ static ResultCode CancelSynchronization(Core::System& system, Handle handle) {
// Get the thread from its handle. // Get the thread from its handle.
KScopedAutoObject thread = KScopedAutoObject thread =
system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>( system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(handle);
static_cast<Handle>(handle)); R_UNLESS(thread.IsNotNull(), ResultInvalidHandle);
// Cancel the thread's wait. // Cancel the thread's wait.
thread->WaitCancel(); thread->WaitCancel();