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
This commit is contained in:
Squall-Leonhart 2023-11-20 11:43:56 +11:00
parent 12fba361bd
commit 8ae26df15c

View File

@ -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) {