[PATCH 1/6] hid/tests: Don't print buttons after HidP_GetUsages failed.
Rémi Bernon
rbernon at codeweavers.com
Mon Jun 7 04:06:56 CDT 2021
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
This test still seems to timeout very rarely on 32bit, I couldn't
reproduce locally though...
dlls/hid/tests/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hid/tests/device.c b/dlls/hid/tests/device.c
index 3dd22b7f068..6693bc8bf5a 100644
--- a/dlls/hid/tests/device.c
+++ b/dlls/hid/tests/device.c
@@ -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;
--
2.31.0
More information about the wine-devel
mailing list