Aric Stewart : hidclass.sys: BSize will never be negative.

Alexandre Julliard julliard at winehq.org
Tue Jan 31 15:42:50 CST 2017


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Mon Jan 30 09:00:29 2017 -0600

hidclass.sys: BSize will never be negative.

Found by Bruno Jesus and cppcheck.

Signed-off-by: Aric Stewart <aric at codeweavers.com>
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 8064e34..ee13055 100644
--- a/dlls/hidclass.sys/descriptor.c
+++ b/dlls/hidclass.sys/descriptor.c
@@ -410,7 +410,7 @@ static void parse_io_feature(unsigned int bSize, int itemVal, int bTag,
                              unsigned int *feature_index,
                              struct feature *feature)
 {
-    if (bSize <= 0)
+    if (bSize == 0)
     {
         return;
     }




More information about the wine-cvs mailing list