Re: [PATCH] hidclass.sys: Remove check for negative value.
Aric Stewart <[email protected]>
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Aric Stewart <[email protected]> On 11/1/17 11:41 AM, Andrey Gusev wrote: > 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) { >