mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 07:08:31 +00:00
dinput/tests: Add some HidD_GetPhysicalDescriptor tests.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3ec8c6459a
commit
70609b4d6c
|
@ -1156,6 +1156,11 @@ static NTSTATUS WINAPI pdo_internal_ioctl( DEVICE_OBJECT *device, IRP *irp )
|
|||
status = STATUS_SUCCESS;
|
||||
break;
|
||||
|
||||
case IOCTL_GET_PHYSICAL_DESCRIPTOR:
|
||||
irp->IoStatus.Information = 0;
|
||||
status = STATUS_NOT_SUPPORTED;
|
||||
break;
|
||||
|
||||
default:
|
||||
ok( 0, "unexpected call\n" );
|
||||
status = irp->IoStatus.Status;
|
||||
|
|
|
@ -1545,6 +1545,11 @@ static void test_hidp( HANDLE file, HANDLE async_file, int report_id, BOOL polle
|
|||
USHORT count;
|
||||
BOOL ret;
|
||||
|
||||
SetLastError( 0xdeadbeef );
|
||||
ret = HidD_GetPhysicalDescriptor( file, buffer, sizeof(buffer) );
|
||||
ok( !ret, "HidD_GetPhysicalDescriptor succeeded\n" );
|
||||
ok( GetLastError() == ERROR_NOT_SUPPORTED, "got error %lu\n", GetLastError() );
|
||||
|
||||
ret = HidD_GetPreparsedData( file, &preparsed_data );
|
||||
ok( ret, "HidD_GetPreparsedData failed with error %lu\n", GetLastError() );
|
||||
|
||||
|
|
Loading…
Reference in a new issue