hid/tests: Remove redundant comparison.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com> Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1e6bf7d996
commit
d4ea289dc1
|
@ -167,7 +167,7 @@ static void process_data(HIDP_CAPS Caps, PHIDP_PREPARSED_DATA ppd, CHAR *data, D
|
|||
{
|
||||
ULONG usage_length = 100;
|
||||
status = HidP_GetUsages(HidP_Input, i, 0, button_pages, &usage_length, ppd, data, data_length);
|
||||
ok (status == HIDP_STATUS_SUCCESS || (status != HIDP_STATUS_SUCCESS && usage_length == 0),
|
||||
ok (status == HIDP_STATUS_SUCCESS || usage_length == 0,
|
||||
"HidP_GetUsages failed (%x) but usage length still %i\n", status, usage_length);
|
||||
if (usage_length)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue