diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 3 |
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) | |||
| 705 | return ERR_INVALID_ENUM_VALUE; | 705 | return ERR_INVALID_ENUM_VALUE; |
| 706 | } | 706 | } |
| 707 | 707 | ||
| 708 | const auto* process = Core::CurrentProcess(); | 708 | const auto& current_process_handle_table = Core::CurrentProcess()->GetHandleTable(); |
| 709 | const auto process = current_process_handle_table.Get<Process>(static_cast<Handle>(handle)); | ||
| 709 | if (!process) { | 710 | if (!process) { |
| 710 | return ERR_INVALID_HANDLE; | 711 | return ERR_INVALID_HANDLE; |
| 711 | } | 712 | } |