mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Adding loggin, returning error to avoid me leaks.
This commit is contained in:
parent
5a1c420b2c
commit
dab3eaba7f
@ -49,9 +49,9 @@ s64 PS4_SYSV_ABI sceUsbdGetDeviceList(SceUsbdDevice*** list) {
|
|||||||
return libusb_to_orbis_error((int)count);
|
return libusb_to_orbis_error((int)count);
|
||||||
|
|
||||||
if (count > 2)
|
if (count > 2)
|
||||||
LOG_WARNING(Lib_Usbd, "Too Many USB Devices Connected");
|
LOG_WARNING(Lib_Usbd, "Too many USB devices connected to list: {}", count);
|
||||||
libusb_unref_device((*list)[2]);
|
libusb_unref_device((*list)[2]);
|
||||||
count = 0;
|
count = -1;
|
||||||
|
|
||||||
return libusb_to_orbis_error((int)count);
|
return libusb_to_orbis_error((int)count);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user