mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-23 01:32:54 +00:00
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:
parent
12fba361bd
commit
8ae26df15c
|
@ -1563,7 +1563,7 @@ void IHidServer::CreateActiveVibrationDeviceList(HLERequestContext& ctx) {
|
||||||
|
|
||||||
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
rb.PushIpcInterface<IActiveVibrationDeviceList>(system, resource_manager);
|
rb.PushIpcInterface<IActiveVibrationDeviceList>(system, GetResourceManager());
|
||||||
}
|
}
|
||||||
|
|
||||||
void IHidServer::PermitVibration(HLERequestContext& ctx) {
|
void IHidServer::PermitVibration(HLERequestContext& ctx) {
|
||||||
|
|
Loading…
Reference in a new issue