hidclass.sys: BSize will never be negative.

Found by Bruno Jesus and cppcheck.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2017-01-30 09:00:29 -06:00 committed by Alexandre Julliard
parent 1c98bc14c9
commit b46e15568c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}