Aric Stewart : hid: Initialize outgoing usages in HidP_GetUsages.

Alexandre Julliard julliard at winehq.org
Wed Dec 7 15:20:30 CST 2016


Module: wine
Branch: master
Commit: 78a547a11ce0b15e8dde7b1b50900c36c2adf1ea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=78a547a11ce0b15e8dde7b1b50900c36c2adf1ea

Author: Aric Stewart <aric at codeweavers.com>
Date:   Wed Dec  7 08:32:20 2016 -0600

hid: Initialize outgoing usages in HidP_GetUsages.

Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hid/hidp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/hid/hidp.c b/dlls/hid/hidp.c
index cac9d4e..56616b4 100644
--- a/dlls/hid/hidp.c
+++ b/dlls/hid/hidp.c
@@ -278,6 +278,8 @@ NTSTATUS WINAPI HidP_GetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USH
     TRACE("(%i, %x, %i, %p, %p, %p, %p, %i)\n", ReportType, UsagePage, LinkCollection, UsageList,
           UsageLength, PreparsedData, Report, ReportLength);
 
+    *UsageLength = 0;
+
     if (data->magic != HID_MAGIC)
         return HIDP_STATUS_INVALID_PREPARSED_DATA;
 




More information about the wine-cvs mailing list