diff options
| author | 2023-12-20 22:52:36 -0600 | |
|---|---|---|
| committer | 2023-12-20 22:52:36 -0600 | |
| commit | 5cd3b6f58c64a77c2176e07842f42ad0d6f8749e (patch) | |
| tree | 9fe45f5a1289d69707baf1f41b8e1879ac54d6eb | |
| parent | Merge pull request #12414 from jbeich/vk274 (diff) | |
| download | yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar.gz yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar.xz yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.zip | |
service: hid: Fix crash on InitializeVibrationDevice
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/hid/hid_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid_server.cpp b/src/core/hle/service/hid/hid_server.cpp index de24b0401..06a01c02c 100644 --- a/src/core/hle/service/hid/hid_server.cpp +++ b/src/core/hle/service/hid/hid_server.cpp | |||
| @@ -51,7 +51,7 @@ private: | |||
| 51 | IPC::RequestParser rp{ctx}; | 51 | IPC::RequestParser rp{ctx}; |
| 52 | const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()}; | 52 | const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()}; |
| 53 | 53 | ||
| 54 | if (resource_manager != nullptr) { | 54 | if (resource_manager != nullptr && resource_manager->GetNpad()) { |
| 55 | resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle); | 55 | resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle); |
| 56 | } | 56 | } |
| 57 | 57 | ||