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:
parent
1c98bc14c9
commit
b46e15568c
|
@ -410,7 +410,7 @@ static void parse_io_feature(unsigned int bSize, int itemVal, int bTag,
|
||||||
unsigned int *feature_index,
|
unsigned int *feature_index,
|
||||||
struct feature *feature)
|
struct feature *feature)
|
||||||
{
|
{
|
||||||
if (bSize <= 0)
|
if (bSize == 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue