summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-22 18:55:36 +0200
committerGitHub <noreply@github.com>2018-10-22 18:55:36 +0200
commitd9923b0dbc62bdff6aed37a2f994012e67375e32 (patch)
treedd0907e7ce0ec84afb972d7902dc9bade538ee82
parentMerge pull request #1547 from FernandoS27/fix-fset (diff)
parentsvc: Fix vma boundary check in svcQueryMemory (diff)
downloadyuzu-d9923b0dbc62bdff6aed37a2f994012e67375e32.tar
yuzu-d9923b0dbc62bdff6aed37a2f994012e67375e32.tar.gz
yuzu-d9923b0dbc62bdff6aed37a2f994012e67375e32.tar.bz2
yuzu-d9923b0dbc62bdff6aed37a2f994012e67375e32.tar.lz
yuzu-d9923b0dbc62bdff6aed37a2f994012e67375e32.tar.xz
yuzu-d9923b0dbc62bdff6aed37a2f994012e67375e32.tar.zst
yuzu-d9923b0dbc62bdff6aed37a2f994012e67375e32.zip
-rw-r--r--src/core/hle/kernel/svc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 3b8a2e230..690b84930 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -654,7 +654,7 @@ static ResultCode QueryProcessMemory(MemoryInfo* memory_info, PageInfo* /*page_i
}
auto vma = process->VMManager().FindVMA(addr);
memory_info->attributes = 0;
- if (vma == Core::CurrentProcess()->VMManager().vma_map.end()) {
+ if (vma == process->VMManager().vma_map.end()) {
memory_info->base_address = 0;
memory_info->permission = static_cast<u32>(VMAPermission::None);
memory_info->size = 0;