mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-08 20:58:41 +00:00
calloc UsbDevice instead of pointer (#3790)
This commit is contained in:
@@ -366,7 +366,7 @@ public:
|
||||
const auto desc = FillDeviceDescriptor();
|
||||
ASSERT(desc);
|
||||
|
||||
const auto fake = static_cast<UsbDevice*>(calloc(1, sizeof(UsbDevice*)));
|
||||
const auto fake = static_cast<UsbDevice*>(calloc(1, sizeof(UsbDevice)));
|
||||
fake->bus_number = 0;
|
||||
fake->port_number = 0;
|
||||
fake->device_address = 0;
|
||||
|
||||
Reference in New Issue
Block a user