mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
usb: Fix Xbox patch to use configurable num_ports field
This commit is contained in:
+1
-1
@@ -545,7 +545,7 @@ static void usb_hub_handle_data(USBDevice *dev, USBPacket *p)
|
||||
status |= (1 << (i + 1));
|
||||
}
|
||||
if (status != 0) {
|
||||
n = DIV_ROUND_UP(NUM_PORTS + 1, 8);
|
||||
n = DIV_ROUND_UP(s->num_ports + 1, 8);
|
||||
if (p->iov.size == 1) { /* FreeBSD workaround */
|
||||
n = 1;
|
||||
} else if (n > p->iov.size) {
|
||||
|
||||
Reference in New Issue
Block a user