xblc: Don't call usb_packet_copy with 0 bytes

This commit is contained in:
Matt Borgerson
2026-02-18 23:23:38 -07:00
committed by mborgerson
parent f4dfa1c091
commit 547af91e8b
+3 -2
View File
@@ -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;