Browse Source
Merge pull request #6440 from bunnei/cancel-synch
kernel: svc: Add missing error check to CancelSynchronization.
pull/15/merge
Mai M
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/core/hle/kernel/svc.cpp
|
|
|
@ -449,8 +449,8 @@ static ResultCode CancelSynchronization(Core::System& system, Handle handle) { |
|
|
|
|
|
|
|
// Get the thread from its handle.
|
|
|
|
KScopedAutoObject thread = |
|
|
|
system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>( |
|
|
|
static_cast<Handle>(handle)); |
|
|
|
system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(handle); |
|
|
|
R_UNLESS(thread.IsNotNull(), ResultInvalidHandle); |
|
|
|
|
|
|
|
// Cancel the thread's wait.
|
|
|
|
thread->WaitCancel(); |
|
|
|
|