Commit b46e1556 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

hidclass.sys: BSize will never be negative.

Found by Bruno Jesus and cppcheck. Signed-off-by: 's avatarAric Stewart <aric@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 1c98bc14
...@@ -410,7 +410,7 @@ static void parse_io_feature(unsigned int bSize, int itemVal, int bTag, ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment