mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:53:36 +00:00
[NTOS]
- Hermes Belusca: Give pnp driver object a name. See issue #7241 for more details. svn path=/trunk/; revision=57080
This commit is contained in:
parent
f31f0a8e5d
commit
0aebbd328d
1 changed files with 2 additions and 1 deletions
|
@ -364,6 +364,7 @@ IopInitializePlugPlayServices(VOID)
|
||||||
ULONG Disposition;
|
ULONG Disposition;
|
||||||
HANDLE KeyHandle, EnumHandle, ParentHandle, TreeHandle, ControlHandle;
|
HANDLE KeyHandle, EnumHandle, ParentHandle, TreeHandle, ControlHandle;
|
||||||
UNICODE_STRING KeyName = RTL_CONSTANT_STRING(L"\\REGISTRY\\MACHINE\\SYSTEM\\CURRENTCONTROLSET");
|
UNICODE_STRING KeyName = RTL_CONSTANT_STRING(L"\\REGISTRY\\MACHINE\\SYSTEM\\CURRENTCONTROLSET");
|
||||||
|
UNICODE_STRING PnpManagerDriverName = RTL_CONSTANT_STRING(L"\\Driver\\PnpManager");
|
||||||
PDEVICE_OBJECT Pdo;
|
PDEVICE_OBJECT Pdo;
|
||||||
|
|
||||||
/* Initialize locks and such */
|
/* Initialize locks and such */
|
||||||
|
@ -468,7 +469,7 @@ IopInitializePlugPlayServices(VOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Create the root driver */
|
/* Create the root driver */
|
||||||
Status = IoCreateDriver(NULL, PnpRootDriverEntry);
|
Status = IoCreateDriver(&PnpManagerDriverName, PnpRootDriverEntry);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("IoCreateDriverObject() failed\n");
|
DPRINT1("IoCreateDriverObject() failed\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue