mirror of
https://github.com/xemu-project/xemu.git
synced 2026-07-11 01:24:41 +02:00
xblc: Don't call usb_packet_copy with 0 bytes
This commit is contained in:
committed by
mborgerson
parent
f4dfa1c091
commit
547af91e8b
+3
-2
@@ -266,9 +266,10 @@ static void xblc_handle_data(USBDevice *dev, USBPacket *p)
|
||||
DPRINTF("Error getting data from the input stream: %s",
|
||||
SDL_GetError());
|
||||
break;
|
||||
} else if (chunk_len > 0) {
|
||||
usb_packet_copy(p, (void *)packet, chunk_len);
|
||||
remaining -= chunk_len;
|
||||
}
|
||||
usb_packet_copy(p, (void *)packet, chunk_len);
|
||||
remaining -= chunk_len;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user