Rémi Bernon : dinput8/tests: Stop increasing the sequence in HID_GET_INPUT_REPORT.
Alexandre Julliard
julliard at winehq.org
Fri Sep 10 15:29:46 CDT 2021
Module: wine
Branch: master
Commit: 202296c282b69fbf4d479a69f8e6fa954be0aee8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=202296c282b69fbf4d479a69f8e6fa954be0aee8
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Fri Sep 10 09:22:44 2021 +0200
dinput8/tests: Stop increasing the sequence in HID_GET_INPUT_REPORT.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dinput8/tests/driver_hid.c | 1 -
dlls/dinput8/tests/hid.c | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dinput8/tests/driver_hid.c b/dlls/dinput8/tests/driver_hid.c
index eefdc05d1a3..b393ddb41cb 100644
--- a/dlls/dinput8/tests/driver_hid.c
+++ b/dlls/dinput8/tests/driver_hid.c
@@ -295,7 +295,6 @@ static NTSTATUS WINAPI driver_internal_ioctl( DEVICE_OBJECT *device, IRP *irp )
memset( packet->reportBuffer, 0xa5, 3 );
if (report_id) ((char *)packet->reportBuffer)[0] = report_id;
- ((char *)packet->reportBuffer)[1] = seq++;
irp->IoStatus.Information = 3;
ret = STATUS_SUCCESS;
break;
diff --git a/dlls/dinput8/tests/hid.c b/dlls/dinput8/tests/hid.c
index 4483a5ec479..ebf3a6e7da9 100644
--- a/dlls/dinput8/tests/hid.c
+++ b/dlls/dinput8/tests/hid.c
@@ -1839,6 +1839,7 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
ret = GetOverlappedResult( async_file, &overlapped, &value, FALSE );
ok( ret, "GetOverlappedResult failed, last error %u\n", GetLastError() );
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected 3\n", value );
+ todo_wine
ok( memcmp( report, buffer + caps.InputReportByteLength, caps.InputReportByteLength ),
"expected different report\n" );
ok( !memcmp( report, buffer, caps.InputReportByteLength ), "expected identical reports\n" );
More information about the wine-cvs
mailing list