Michael Stefaniuc : hidclass.sys: Fix a misplaced closing bracket ( PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 13 10:53:47 CDT 2015


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Oct 13 00:28:11 2015 +0200

hidclass.sys: Fix a misplaced closing bracket (PVS-Studio).

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 ac9b047..13ac99b 100644
--- a/dlls/hidclass.sys/descriptor.c
+++ b/dlls/hidclass.sys/descriptor.c
@@ -964,7 +964,7 @@ WINE_HIDP_PREPARSED_DATA* build_PreparseData(
             if (feature_features[i]->caps.ReportID != wine_report->reportID)
             {
                 wine_report->dwSize += (sizeof(WINE_HID_ELEMENT) * wine_report->elementCount);
-                wine_report = (WINE_HID_REPORT*)((BYTE*)wine_report)+wine_report->dwSize;
+                wine_report = (WINE_HID_REPORT*)((BYTE*)wine_report+wine_report->dwSize);
                 new_report(wine_report, feature_features[i]);
                 data->dwFeatureReportCount++;
                 bitLength = max(bitOffset, bitLength);




More information about the wine-cvs mailing list