diff options
| author | Liam <byteslice@airmail.cc> | 2023-02-24 12:29:55 -0500 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2023-02-24 12:48:07 -0500 |
| commit | de4e5db3300cc77694ff154cf3e8a3ba9c9eaf78 (patch) | |
| tree | 65cfc240522bc045bd5e5de3c7e6530b26c7c482 /src/core/hle/service/hid/hidbus.h | |
| parent | ca8a804a3c28f53bba9d1f9080ae15c13f60ce9c (diff) | |
hid: avoid direct pointer access of transfer memory objects
Diffstat (limited to 'src/core/hle/service/hid/hidbus.h')
| -rw-r--r-- | src/core/hle/service/hid/hidbus.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/hidbus.h b/src/core/hle/service/hid/hidbus.h index 8c687f678..9a4702021 100644 --- a/src/core/hle/service/hid/hidbus.h +++ b/src/core/hle/service/hid/hidbus.h @@ -115,8 +115,7 @@ private: void MakeDevice(BusHandle handle) { const auto device_index = GetDeviceIndexFromHandle(handle); if (device_index) { - devices[device_index.value()].device = - std::make_unique<T>(system.HIDCore(), service_context); + devices[device_index.value()].device = std::make_unique<T>(system, service_context); } } |
