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

Michael Stefaniuc mstefani at redhat.de
Mon Oct 12 17:28:11 CDT 2015


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---

Some lines above the correct form is used too.



 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);
-- 
2.1.0



More information about the wine-patches mailing list