dinput: Cap the buffer size to 20.
commit8d052561724f9c8d9e7770964bfaebdd01e98e60
authorAlistair Leslie-Hughes <leslie_alistair@hotmail.com>
Sun, 12 Jan 2020 22:33:24 +0000 (12 22:33 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 13 Jan 2020 18:41:02 +0000 (13 19:41 +0100)
tree42f45262e3bd436a38bad3101625b5da7d6805e6
parent21876b998ce3dbb3245cc0a85aee80e0d6b03168
dinput: Cap the buffer size to 20.

When a program calls SetProperty with DIPROP_BUFFERSIZE, dinput records
this value for GetProperty but only uses it when the device can support
that number of buffers otherwise a max value.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45732
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/dinput/device.c
dlls/dinput/device_private.h
dlls/dinput/tests/device.c