summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc/svc_query_memory.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-02-13 16:44:41 +0100
committerLiam <byteslice@airmail.cc>2023-02-13 17:05:14 +0100
commit4363ca304afb0b615481c7d49e863a2c429cc5c6 (patch)
tree80dbba25e98a8493944993f8992326b797305088 /src/core/hle/kernel/svc/svc_query_memory.cpp
parentMerge pull request #9784 from m-HD/master (diff)
downloadyuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.gz
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.bz2
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.lz
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.xz
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.tar.zst
yuzu-4363ca304afb0b615481c7d49e863a2c429cc5c6.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc/svc_query_memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc/svc_query_memory.cpp b/src/core/hle/kernel/svc/svc_query_memory.cpp
index db140a341..ee75ad370 100644
--- a/src/core/hle/kernel/svc/svc_query_memory.cpp
+++ b/src/core/hle/kernel/svc/svc_query_memory.cpp
@@ -22,7 +22,7 @@ Result QueryMemory(Core::System& system, uint64_t out_memory_info, PageInfo* out
Result QueryProcessMemory(Core::System& system, uint64_t out_memory_info, PageInfo* out_page_info,
Handle process_handle, uint64_t address) {
LOG_TRACE(Kernel_SVC, "called process=0x{:08X} address={:X}", process_handle, address);
- const auto& handle_table = system.Kernel().CurrentProcess()->GetHandleTable();
+ const auto& handle_table = GetCurrentProcess(system.Kernel()).GetHandleTable();
KScopedAutoObject process = handle_table.GetObject<KProcess>(process_handle);
if (process.IsNull()) {
LOG_ERROR(Kernel_SVC, "Process handle does not exist, process_handle=0x{:08X}",