From d416f1c4ce8b5ef6487db2ba60f9cee37f4764cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 12 Jan 2022 17:23:58 +0100 Subject: [PATCH] user32: Increase the default message buffer size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DS4 controllers are sending 563 bytes HID reports by default, this translates to WM_INPUT messages larger than the default message size. We would otherwise need an additional server roundtrip on each message, and these devices are also known to be very verbose and continuously send HID reports, so we really don't want it. Signed-off-by: RĂ©mi Bernon Signed-off-by: Alexandre Julliard --- dlls/user32/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/message.c b/dlls/user32/message.c index d7dbc64d796..44b08da79dd 100644 --- a/dlls/user32/message.c +++ b/dlls/user32/message.c @@ -2665,7 +2665,7 @@ static int peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags, struct received_message_info info, *old_info; unsigned int hw_id = 0; /* id of previous hardware message */ void *buffer; - size_t buffer_size = 256; + size_t buffer_size = 1024; if (!(buffer = HeapAlloc( GetProcessHeap(), 0, buffer_size ))) return -1;