[PATCH] hidclass.sys: Remove check for negative value.
Andrey Gusev
andrey.goosev at gmail.com
Wed Nov 1 11:41:37 CDT 2017
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
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
More information about the wine-patches
mailing list