[PATCH] hidclass.sys: Remove check for negative value.
Aric Stewart
aric at codeweavers.com
Thu Nov 2 08:53:45 CDT 2017
Signed-off-by: Aric Stewart <aric at codeweavers.com>
On 11/1/17 11:41 AM, Andrey Gusev wrote:
> 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) {
>
More information about the wine-patches
mailing list