dinput8/tests: Stop increasing the sequence in HID_GET_INPUT_REPORT.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-09-10 09:22:44 +02:00 committed by Alexandre Julliard
parent 03e68ae3fc
commit 202296c282
2 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,6 @@ static NTSTATUS WINAPI driver_internal_ioctl( DEVICE_OBJECT *device, IRP *irp )
memset( packet->reportBuffer, 0xa5, 3 ); memset( packet->reportBuffer, 0xa5, 3 );
if (report_id) ((char *)packet->reportBuffer)[0] = report_id; if (report_id) ((char *)packet->reportBuffer)[0] = report_id;
((char *)packet->reportBuffer)[1] = seq++;
irp->IoStatus.Information = 3; irp->IoStatus.Information = 3;
ret = STATUS_SUCCESS; ret = STATUS_SUCCESS;
break; break;

View File

@ -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 ); ret = GetOverlappedResult( async_file, &overlapped, &value, FALSE );
ok( ret, "GetOverlappedResult failed, last error %u\n", GetLastError() ); ok( ret, "GetOverlappedResult failed, last error %u\n", GetLastError() );
ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected 3\n", value ); ok( value == (report_id ? 3 : 4), "GetOverlappedResult returned length %u, expected 3\n", value );
todo_wine
ok( memcmp( report, buffer + caps.InputReportByteLength, caps.InputReportByteLength ), ok( memcmp( report, buffer + caps.InputReportByteLength, caps.InputReportByteLength ),
"expected different report\n" ); "expected different report\n" );
ok( !memcmp( report, buffer, caps.InputReportByteLength ), "expected identical reports\n" ); ok( !memcmp( report, buffer, caps.InputReportByteLength ), "expected identical reports\n" );