Revert most of r53392 effects.

When IoReportDetectedDevice() creates a PDO, the PDO is in no way related to the DriverObject given to the function.
Driver calling IoReportDetectedDevice() should then ensure that it attachs a FDO on top of this PDO.

svn path=/trunk/; revision=55972
This commit is contained in:
Hervé Poussineau 2012-03-03 20:39:51 +00:00
parent 85f9f9e518
commit 22f20d79fc

View file

@ -207,7 +207,7 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject,
{ {
/* Create the PDO */ /* Create the PDO */
Status = PnpRootCreateDevice(&ServiceName, Status = PnpRootCreateDevice(&ServiceName,
DriverObject, NULL,
&Pdo, &Pdo,
NULL); NULL);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))