Rémi Bernon : dinput: Use object instance offset to access extra value caps.

Alexandre Julliard julliard at winehq.org
Tue Oct 19 16:07:46 CDT 2021


Module: wine
Branch: master
Commit: f091aeae50a1fa79b29110965ddd31d63c6a4ed3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f091aeae50a1fa79b29110965ddd31d63c6a4ed3

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Tue Oct 19 09:20:01 2021 +0200

dinput: Use object instance offset to access extra value caps.

Value objects are always enumerated first, so offset / sizeof(LONG) can
be safely used to index input_extra_caps array.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/dinput/joystick_hid.c | 89 +++++++++++++++++++++++++++-------------------
 1 file changed, 52 insertions(+), 37 deletions(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=f091aeae50a1fa79b29110965ddd31d63c6a4ed3



More information about the wine-cvs mailing list