hid/tests: Don't print buttons after HidP_GetUsages failed.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
673815e0ed
commit
573e8bada9
|
@ -215,7 +215,7 @@ static void process_data(HIDP_CAPS Caps, PHIDP_PREPARSED_DATA ppd, CHAR *data, D
|
|||
status = HidP_GetUsages(HidP_Input, i, 0, button_pages, &usage_length, ppd, data, data_length);
|
||||
ok (status == HIDP_STATUS_SUCCESS || usage_length == 0,
|
||||
"HidP_GetUsages failed (%x) but usage length still %i\n", status, usage_length);
|
||||
if (usage_length)
|
||||
if (status == HIDP_STATUS_SUCCESS && usage_length)
|
||||
{
|
||||
CHAR report[50];
|
||||
int count;
|
||||
|
|
Loading…
Reference in New Issue