summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-02 08:00:11 +0100
committerLioncash <mathew1800@gmail.com>2018-12-02 09:41:49 +0100
commit7fe27de26e341651a47f540e3ae0be46ed9ec974 (patch)
tree5657b2824c89590e4cccd2908b997eac8f0d53cd /src/core/hle/kernel/svc.cpp
parentsvc: Reorganize svcGetInfo, handle more error cases for existing implemented info categories (diff)
downloadyuzu-7fe27de26e341651a47f540e3ae0be46ed9ec974.tar
yuzu-7fe27de26e341651a47f540e3ae0be46ed9ec974.tar.gz
yuzu-7fe27de26e341651a47f540e3ae0be46ed9ec974.tar.bz2
yuzu-7fe27de26e341651a47f540e3ae0be46ed9ec974.tar.lz
yuzu-7fe27de26e341651a47f540e3ae0be46ed9ec974.tar.xz
yuzu-7fe27de26e341651a47f540e3ae0be46ed9ec974.tar.zst
yuzu-7fe27de26e341651a47f540e3ae0be46ed9ec974.zip
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 2a7477247..aafd16800 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -705,7 +705,8 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id)
return ERR_INVALID_ENUM_VALUE;
}
- const auto* process = Core::CurrentProcess();
+ const auto& current_process_handle_table = Core::CurrentProcess()->GetHandleTable();
+ const auto process = current_process_handle_table.Get<Process>(static_cast<Handle>(handle));
if (!process) {
return ERR_INVALID_HANDLE;
}