From 55fccf03faf392c09a9a31bb4ab52812191969b0 Mon Sep 17 00:00:00 2001 From: Florin9doi Date: Tue, 30 Apr 2024 13:46:38 +0300 Subject: [PATCH] USB: Update GameTablet --- rpcs3/Emu/Io/GameTablet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Io/GameTablet.cpp b/rpcs3/Emu/Io/GameTablet.cpp index ed7038cd75..e1f76d1acd 100644 --- a/rpcs3/Emu/Io/GameTablet.cpp +++ b/rpcs3/Emu/Io/GameTablet.cpp @@ -160,7 +160,7 @@ extern bool is_input_allowed(); void usb_device_gametablet::interrupt_transfer(u32 buf_size, u8* buf, u32 /*endpoint*/, UsbTransfer* transfer) { - ensure(buf_size > 0x1a); + ensure(buf_size >= sizeof(GameTablet_data)); transfer->fake = true; transfer->expected_count = 27;