https://git.reactos.org/?p=reactos.git;a=commitdiff;h=22d1e7a4e4175b2d57942…
commit 22d1e7a4e4175b2d579428493434eaab28323cca
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Oct 31 23:24:32 2021 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Nov 1 18:16:25 2021 +0100
[NTOS:IO] Create non volatile registry keys for root devices (as for other devices)
---
ntoskrnl/io/pnpmgr/pnproot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/io/pnpmgr/pnproot.c b/ntoskrnl/io/pnpmgr/pnproot.c
index 9d28a3f1244..cc489c98670 100644
--- a/ntoskrnl/io/pnpmgr/pnproot.c
+++ b/ntoskrnl/io/pnpmgr/pnproot.c
@@ -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);