Commit d416f1c4 authored by Rémi Bernon's avatar Rémi Bernon 💬 Committed by Alexandre Julliard
Browse files

user32: Increase the default message buffer size.

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's avatarRémi Bernon <>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <>
parent 352cfbcf
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment