Commit 70609b4d authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput/tests: Add some HidD_GetPhysicalDescriptor tests.

parent 3ec8c645
......@@ -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() );
......
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