[ros-diffs] [hpoussin] 55972: 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 IoReportDetected...

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Sat Mar 3 20:39:51 UTC 2012


Author: hpoussin
Date: Sat Mar  3 20:39:51 2012
New Revision: 55972

URL: http://svn.reactos.org/svn/reactos?rev=55972&view=rev
Log:
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.

Modified:
    trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c

Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c?rev=55972&r1=55971&r2=55972&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpreport.c [iso-8859-1] Sat Mar  3 20:39:51 2012
@@ -207,7 +207,7 @@
     {
         /* Create the PDO */
         Status = PnpRootCreateDevice(&ServiceName,
-                                     DriverObject,
+                                     NULL,
                                      &Pdo,
                                      NULL);
         if (!NT_SUCCESS(Status))




More information about the Ros-diffs mailing list