mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:IO] Create non volatile registry keys for root devices (as for other devices)
This commit is contained in:
parent
9967d9aa4c
commit
22d1e7a4e4
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ PnpRootCreateDevice(
|
|||
OBJ_KERNEL_HANDLE | OBJ_CASE_INSENSITIVE,
|
||||
EnumHandle,
|
||||
NULL);
|
||||
Status = ZwCreateKey(&DeviceKeyHandle, KEY_SET_VALUE, &ObjectAttributes, 0, NULL, REG_OPTION_VOLATILE, NULL);
|
||||
Status = ZwCreateKey(&DeviceKeyHandle, KEY_SET_VALUE, &ObjectAttributes, 0, NULL, REG_OPTION_NON_VOLATILE, NULL);
|
||||
ObCloseHandle(EnumHandle, KernelMode);
|
||||
}
|
||||
|
||||
|
@ -315,7 +315,7 @@ tryagain:
|
|||
OBJ_KERNEL_HANDLE | OBJ_CASE_INSENSITIVE,
|
||||
DeviceKeyHandle,
|
||||
NULL);
|
||||
Status = ZwCreateKey(&InstanceKeyHandle, KEY_QUERY_VALUE, &ObjectAttributes, 0, NULL, REG_OPTION_VOLATILE, NULL);
|
||||
Status = ZwCreateKey(&InstanceKeyHandle, KEY_QUERY_VALUE, &ObjectAttributes, 0, NULL, REG_OPTION_NON_VOLATILE, NULL);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("Failed to create instance path (0x%x)\n", Status);
|
||||
|
|
Loading…
Reference in a new issue