diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-26 11:46:11 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-26 11:46:11 -0500 |
| commit | de1e5584b32edcc5b43dd7b5757ee4b361f9f70c (patch) | |
| tree | a11721530b76fa281f0793ed8469fd9a847f5489 /src/core/hle/service/hid/hidbus.cpp | |
| parent | 1559984f77c4cf7474a8f806046b709576e4e439 (diff) | |
| parent | 47e44a6693ad2e8c7fbdaa23ed440d9780e1d54b (diff) | |
Merge pull request #12465 from liamwhite/proper-handle-table
service: fetch objects from the client handle table
Diffstat (limited to 'src/core/hle/service/hid/hidbus.cpp')
| -rw-r--r-- | src/core/hle/service/hid/hidbus.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/hidbus.cpp b/src/core/hle/service/hid/hidbus.cpp index 80aac221b..d12f9beb0 100644 --- a/src/core/hle/service/hid/hidbus.cpp +++ b/src/core/hle/service/hid/hidbus.cpp @@ -448,8 +448,7 @@ void HidBus::EnableJoyPollingReceiveMode(HLERequestContext& ctx) { ASSERT_MSG(t_mem_size == 0x1000, "t_mem_size is not 0x1000 bytes"); - auto t_mem = system.ApplicationProcess()->GetHandleTable().GetObject<Kernel::KTransferMemory>( - t_mem_handle); + auto t_mem = ctx.GetObjectFromHandle<Kernel::KTransferMemory>(t_mem_handle); if (t_mem.IsNull()) { LOG_ERROR(Service_HID, "t_mem is a nullptr for handle=0x{:08X}", t_mem_handle); |
