From 22f20d79fc86d419a2392bf66fab31df3c01f491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sat, 3 Mar 2012 20:39:51 +0000 Subject: [PATCH] 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 --- reactos/ntoskrnl/io/pnpmgr/pnpreport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpreport.c b/reactos/ntoskrnl/io/pnpmgr/pnpreport.c index 0522c016b6d..7f9ab6c1631 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpreport.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpreport.c @@ -207,7 +207,7 @@ IoReportDetectedDevice(IN PDRIVER_OBJECT DriverObject, { /* Create the PDO */ Status = PnpRootCreateDevice(&ServiceName, - DriverObject, + NULL, &Pdo, NULL); if (!NT_SUCCESS(Status))