First argument doesn't need to be a physical device object, it only needs to be in a PDO driver stack.

svn path=/trunk/; revision=22982
This commit is contained in:
Hervé Poussineau 2006-07-09 22:08:24 +00:00
parent 8892a1ea62
commit aea3ddc7c8
2 changed files with 8 additions and 1 deletions

View file

@ -542,7 +542,13 @@ IoDestroyDriverList(
VOID
);
NTSTATUS
PDEVICE_OBJECT
NTAPI
IopGetLowestDevice(
IN PDEVICE_OBJECT DeviceObject
);
NTSTATUS
INIT_FUNCTION
IopInitPlugPlayEvents(VOID);

View file

@ -635,6 +635,7 @@ IoRegisterDeviceInterface(IN PDEVICE_OBJECT PhysicalDeviceObject,
ASSERT_IRQL(PASSIVE_LEVEL);
/* Parameters must pass three border of checks */
PhysicalDeviceObject = IopGetLowestDevice(PhysicalDeviceObject);
DeviceObjectExtension = (PEXTENDED_DEVOBJ_EXTENSION)PhysicalDeviceObject->DeviceObjectExtension;
/* 1st level: Presence of a Device Node */