diff options
| author | Liam <byteslice@airmail.cc> | 2023-02-13 10:44:41 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-02-13 11:05:14 -0500 |
| commit | 4363ca304afb0b615481c7d49e863a2c429cc5c6 (patch) | |
| tree | 80dbba25e98a8493944993f8992326b797305088 /src/core/hle/kernel/svc/svc_cache.cpp | |
| parent | 770a49616d9f9772ffd6c1648a25da4abd4338e2 (diff) | |
kernel: use GetCurrentProcess
Diffstat (limited to 'src/core/hle/kernel/svc/svc_cache.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc/svc_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc/svc_cache.cpp b/src/core/hle/kernel/svc/svc_cache.cpp index b5404760e..598b71da5 100644 --- a/src/core/hle/kernel/svc/svc_cache.cpp +++ b/src/core/hle/kernel/svc/svc_cache.cpp @@ -38,7 +38,7 @@ Result FlushProcessDataCache(Core::System& system, Handle process_handle, u64 ad // Get the process from its handle. KScopedAutoObject process = - system.Kernel().CurrentProcess()->GetHandleTable().GetObject<KProcess>(process_handle); + GetCurrentProcess(system.Kernel()).GetHandleTable().GetObject<KProcess>(process_handle); R_UNLESS(process.IsNotNull(), ResultInvalidHandle); // Verify the region is within range. |
