From 8ae26df15ce351f3de5badc562d2b7b123cb5e2f Mon Sep 17 00:00:00 2001 From: Squall-Leonhart Date: Mon, 20 Nov 2023 11:43:56 +1100 Subject: 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 --- src/core/hle/service/hid/hid_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(system, resource_manager); + rb.PushIpcInterface(system, GetResourceManager()); } void IHidServer::PermitVibration(HLERequestContext& ctx) { -- cgit v1.2.3