Commit 06ab0677 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

hidclass.sys: Set PhysicalDeviceObject to the bus PDO.

parent a1736729
...@@ -135,7 +135,7 @@ static NTSTATUS WINAPI driver_add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *b ...@@ -135,7 +135,7 @@ static NTSTATUS WINAPI driver_add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *b
ext = fdo->DeviceExtension; ext = fdo->DeviceExtension;
ext->is_fdo = TRUE; ext->is_fdo = TRUE;
ext->u.fdo.hid_ext.MiniDeviceExtension = ext + 1; ext->u.fdo.hid_ext.MiniDeviceExtension = ext + 1;
ext->u.fdo.hid_ext.PhysicalDeviceObject = fdo; ext->u.fdo.hid_ext.PhysicalDeviceObject = bus_pdo;
ext->u.fdo.hid_ext.NextDeviceObject = bus_pdo; ext->u.fdo.hid_ext.NextDeviceObject = bus_pdo;
swprintf(ext->device_id, ARRAY_SIZE(ext->device_id), L"HID\\%s", wcsrchr(device_id, '\\') + 1); swprintf(ext->device_id, ARRAY_SIZE(ext->device_id), L"HID\\%s", wcsrchr(device_id, '\\') + 1);
wcscpy(ext->instance_id, instance_id); wcscpy(ext->instance_id, instance_id);
......
...@@ -215,7 +215,7 @@ static NTSTATUS WINAPI driver_add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *f ...@@ -215,7 +215,7 @@ static NTSTATUS WINAPI driver_add_device(DRIVER_OBJECT *driver, DEVICE_OBJECT *f
/* We should be given the FDO, not the PDO. */ /* We should be given the FDO, not the PDO. */
ok(!!ext->PhysicalDeviceObject, "expected non-NULL pdo\n"); ok(!!ext->PhysicalDeviceObject, "expected non-NULL pdo\n");
todo_wine ok(ext->NextDeviceObject == ext->PhysicalDeviceObject, "got pdo %p, next %p\n", ok(ext->NextDeviceObject == ext->PhysicalDeviceObject, "got pdo %p, next %p\n",
ext->PhysicalDeviceObject, ext->NextDeviceObject); ext->PhysicalDeviceObject, ext->NextDeviceObject);
todo_wine ok(ext->NextDeviceObject->AttachedDevice == fdo, "wrong attached device\n"); todo_wine ok(ext->NextDeviceObject->AttachedDevice == fdo, "wrong attached device\n");
......
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