diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-02-15 17:42:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-15 17:42:45 -0500 |
| commit | 6d77de96dae4763ef78fdea1918b582e5e181653 (patch) | |
| tree | 0c131de68a68c23f62a8a253b3cf69d3bfc91ee7 /src/core/hle/kernel/svc/svc_activity.cpp | |
| parent | 04d2d2ef5fdd56baa0ecf60e59ea4e915262161d (diff) | |
| parent | ceda2d280e8a3030c1e23083c5cea9158387fe4c (diff) | |
Merge pull request #9796 from liamwhite/current
general: rename CurrentProcess to ApplicationProcess
Diffstat (limited to 'src/core/hle/kernel/svc/svc_activity.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc/svc_activity.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc/svc_activity.cpp b/src/core/hle/kernel/svc/svc_activity.cpp index baafefaeb..63bc08555 100644 --- a/src/core/hle/kernel/svc/svc_activity.cpp +++ b/src/core/hle/kernel/svc/svc_activity.cpp @@ -23,11 +23,12 @@ Result SetThreadActivity(Core::System& system, Handle thread_handle, // Get the thread from its handle. KScopedAutoObject thread = - system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KThread>(thread_handle); + GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KThread>(thread_handle); R_UNLESS(thread.IsNotNull(), ResultInvalidHandle); // Check that the activity is being set on a non-current thread for the current process. - R_UNLESS(thread->GetOwnerProcess() == system.Kernel().CurrentProcess(), ResultInvalidHandle); + R_UNLESS(thread->GetOwnerProcess() == GetCurrentProcessPointer(system.Kernel()), + ResultInvalidHandle); R_UNLESS(thread.GetPointerUnsafe() != GetCurrentThreadPointer(system.Kernel()), ResultBusy); // Set the activity. |
