Commit 573e8bad authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

hid/tests: Don't print buttons after HidP_GetUsages failed.

parent 673815e0
......@@ -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;
......
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