Rémi Bernon : winebus.sys: Remove effect gain from the crafted PID reports.

Alexandre Julliard julliard at winehq.org
Fri Nov 19 15:45:31 CST 2021


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Fri Nov 19 09:39:37 2021 +0100

winebus.sys: Remove effect gain from the crafted PID reports.

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

---

 dlls/winebus.sys/hid.c          | 8 --------
 dlls/winebus.sys/unix_private.h | 1 -
 2 files changed, 9 deletions(-)

diff --git a/dlls/winebus.sys/hid.c b/dlls/winebus.sys/hid.c
index d9523324ae1..89bc4904fac 100644
--- a/dlls/winebus.sys/hid.c
+++ b/dlls/winebus.sys/hid.c
@@ -440,7 +440,6 @@ struct pid_effect_update
     UINT16 trigger_repeat_interval;
     UINT16 sample_period;
     UINT16 start_delay;
-    BYTE gain;
     BYTE trigger_button;
     BYTE enable_bits;
     BYTE direction[2];
@@ -851,12 +850,6 @@ BOOL hid_device_add_physical(struct unix_device *iface, USAGE *usages, USHORT co
             UNIT_EXPONENT(1, 0),
             UNIT(1, 0), /* None */
 
-            USAGE(1, PID_USAGE_GAIN),
-            LOGICAL_MAXIMUM(1, 0x7f),
-            REPORT_SIZE(1, 8),
-            REPORT_COUNT(1, 1),
-            OUTPUT(1, Data|Var|Abs),
-
             USAGE(1, PID_USAGE_TRIGGER_BUTTON),
             LOGICAL_MAXIMUM(2, state->button_count),
             REPORT_SIZE(1, 8),
@@ -1093,7 +1086,6 @@ static void hid_device_set_output_report(struct unix_device *iface, HID_XFER_PAC
             params->trigger_repeat_interval = report->trigger_repeat_interval;
             params->sample_period = report->sample_period;
             params->start_delay = report->start_delay;
-            params->gain = report->gain;
             params->trigger_button = report->trigger_button == 0xff ? 0 : report->trigger_button;
             params->axis_enabled[0] = (report->enable_bits & 1) != 0;
             params->axis_enabled[1] = (report->enable_bits & 2) != 0;
diff --git a/dlls/winebus.sys/unix_private.h b/dlls/winebus.sys/unix_private.h
index ef574e48cee..0315deca35d 100644
--- a/dlls/winebus.sys/unix_private.h
+++ b/dlls/winebus.sys/unix_private.h
@@ -73,7 +73,6 @@ struct effect_params
     UINT16 trigger_repeat_interval;
     UINT16 sample_period;
     UINT16 start_delay;
-    BYTE gain;
     BYTE trigger_button;
     BOOL axis_enabled[2];
     BOOL direction_enabled;




More information about the wine-cvs mailing list