[PATCH 1/7] hidclass.sys: Fix incorrect feature report debug print.

Rémi Bernon rbernon at codeweavers.com
Tue Jun 8 02:26:35 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 dlls/hidclass.sys/descriptor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/hidclass.sys/descriptor.c b/dlls/hidclass.sys/descriptor.c
index 9364400275a..1c988d89719 100644
--- a/dlls/hidclass.sys/descriptor.c
+++ b/dlls/hidclass.sys/descriptor.c
@@ -248,7 +248,7 @@ static void debug_print_preparsed(WINE_HIDP_PREPARSED_DATA *data)
             debug_print_report("OUTPUT", data, &data->reports[i]);
         }
         end += data->reportCount[HidP_Feature];
-        for (i = 0; i < end; i++)
+        for (; i < end; i++)
         {
             debug_print_report("FEATURE", data, &data->reports[i]);
         }
-- 
2.31.0




More information about the wine-devel mailing list