Author: fireball
Date: Wed Aug 15 22:29:11 2012
New Revision: 57080
URL:
http://svn.reactos.org/svn/reactos?rev=57080&view=rev
Log:
[NTOS]
- Hermes Belusca: Give pnp driver object a name.
See issue #7241 for more details.
Modified:
trunk/reactos/ntoskrnl/io/pnpmgr/pnpinit.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpinit…
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpinit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpinit.c [iso-8859-1] Wed Aug 15 22:29:11 2012
@@ -364,6 +364,7 @@
ULONG Disposition;
HANDLE KeyHandle, EnumHandle, ParentHandle, TreeHandle, ControlHandle;
UNICODE_STRING KeyName =
RTL_CONSTANT_STRING(L"\\REGISTRY\\MACHINE\\SYSTEM\\CURRENTCONTROLSET");
+ UNICODE_STRING PnpManagerDriverName =
RTL_CONSTANT_STRING(L"\\Driver\\PnpManager");
PDEVICE_OBJECT Pdo;
/* Initialize locks and such */
@@ -468,7 +469,7 @@
}
/* Create the root driver */
- Status = IoCreateDriver(NULL, PnpRootDriverEntry);
+ Status = IoCreateDriver(&PnpManagerDriverName, PnpRootDriverEntry);
if (!NT_SUCCESS(Status))
{
DPRINT1("IoCreateDriverObject() failed\n");