Revert most of r53392 effects.
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 3 Mar 2012 20:39:51 +0000 (20:39 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sat, 3 Mar 2012 20:39:51 +0000 (20:39 +0000)
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

reactos/ntoskrnl/io/pnpmgr/pnpreport.c

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