Alexandre Julliard pushed to branch master at wine / wine
Commits: 22e764c7 by Csányi István at 2025-07-31T20:59:29+09:00 winebus.sys: Fix DualSense BT quirk.
We need to memmove 11 bytes, otherwise buffer[10] ends up as a copy of buffer[9] which resulted in the second byte of button state being wrongly re-used as a third byte as well.
The original code did not suffer from this - while the length check was also one off, and likely informed the one off memmove, the buffer pointer was just incremented so everything "moved" correctly.
Fixes: c708295ed6de ("winebus: Move Sony controllers report fixups to PE side.") Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56883 Signed-off-by: Arkadiusz Hiler ahiler@codeweavers.com
- - - - -
1 changed file:
- dlls/winebus.sys/main.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/22e764c7a067ef8348aee0c21a6fb9b...