summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Squall-Leonhart2023-11-20 11:43:56 +1100
committerGravatar Squall-Leonhart2023-11-20 11:43:56 +1100
commit8ae26df15ce351f3de5badc562d2b7b123cb5e2f (patch)
tree468f40e14c68bbb7510564647fce3223dee0d99c /src
parentMerge pull request #12083 from liamwhite/viewport (diff)
downloadyuzu-8ae26df15ce351f3de5badc562d2b7b123cb5e2f.tar.gz
yuzu-8ae26df15ce351f3de5badc562d2b7b123cb5e2f.tar.xz
yuzu-8ae26df15ce351f3de5badc562d2b7b123cb5e2f.zip
service: hid: Ensure resource manager is initialized
Ensures the proper initialization of the IActiveVibrationDeviceList. By using GetResourceManager() instead of resource_manager, we make sure that the IActiveVibrationDeviceListis initialized before it's used, preventing potential null issues. Fixes #12088
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/hid/hid_server.cpp2
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 0be6a7186..9094fdcc7 100644
--- a/src/core/hle/service/hid/hid_server.cpp
+++ b/src/core/hle/service/hid/hid_server.cpp
@@ -1563,7 +1563,7 @@ void IHidServer::CreateActiveVibrationDeviceList(HLERequestContext& ctx) {
1563 1563
1564 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 1564 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
1565 rb.Push(ResultSuccess); 1565 rb.Push(ResultSuccess);
1566 rb.PushIpcInterface<IActiveVibrationDeviceList>(system, resource_manager); 1566 rb.PushIpcInterface<IActiveVibrationDeviceList>(system, GetResourceManager());
1567} 1567}
1568 1568
1569void IHidServer::PermitVibration(HLERequestContext& ctx) { 1569void IHidServer::PermitVibration(HLERequestContext& ctx) {