mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 08:08:56 +00:00
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:
parent
8892a1ea62
commit
aea3ddc7c8
|
@ -542,7 +542,13 @@ IoDestroyDriverList(
|
|||
VOID
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
PDEVICE_OBJECT
|
||||
NTAPI
|
||||
IopGetLowestDevice(
|
||||
IN PDEVICE_OBJECT DeviceObject
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
INIT_FUNCTION
|
||||
IopInitPlugPlayEvents(VOID);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue