[NTOSKRNL]

Don't hardcode L"\\Driver\\" but use the #define DRIVER_ROOT_NAME instead (2/2)

svn path=/trunk/; revision=59802
This commit is contained in:
Hermès Bélusca-Maïto 2013-08-23 21:03:37 +00:00
parent 7911d070b9
commit 7efba3bbfc

View file

@ -364,7 +364,7 @@ IopInitializePlugPlayServices(VOID)
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");
UNICODE_STRING PnpManagerDriverName = RTL_CONSTANT_STRING(DRIVER_ROOT_NAME L"PnpManager");
PDEVICE_OBJECT Pdo;
/* Initialize locks and such */