[PATCH] hidclass.sys: Remove check for negative value.

Andrey Gusev <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Andrey Gusev <[email protected]>
---
 dlls/hidclass.sys/descriptor.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/hidclass.sys/descriptor.c b/dlls/hidclass.sys/descriptor.c
index ee13055623..0c8e891bd0 100644
--- a/dlls/hidclass.sys/descriptor.c
+++ b/dlls/hidclass.sys/descriptor.c
@@ -440,10 +440,12 @@ static void parse_io_feature(unsigned int bSize, int itemVal, int bTag,
 static void parse_collection(unsigned int bSize, int itemVal,
                              struct collection *collection)
 {
-    if (bSize <= 0)
+    if (bSize == 0)
+    {
         return;
+    }
     else
-     {
+    {
         collection->type = itemVal;
 
         if (itemVal >= 0x07 && itemVal <= 0x7F) {
-- 
2.13.6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.