diff options
author | Squall-Leonhart <danialhorton@hotmail.com> | 2023-11-20 11:43:56 +1100 |
---|---|---|
committer | Squall-Leonhart <danialhorton@hotmail.com> | 2023-11-20 11:43:56 +1100 |
commit | 8ae26df15ce351f3de5badc562d2b7b123cb5e2f (patch) | |
tree | 468f40e14c68bbb7510564647fce3223dee0d99c | |
parent | 12fba361bdf59f31a6c79271e22c52ebf41ab866 (diff) |
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
-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 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) { IPC::ResponseBuilder rb{ctx, 2, 0, 1}; rb.Push(ResultSuccess); - rb.PushIpcInterface<IActiveVibrationDeviceList>(system, resource_manager); + rb.PushIpcInterface<IActiveVibrationDeviceList>(system, GetResourceManager()); } void IHidServer::PermitVibration(HLERequestContext& ctx) { |