Author: hbelusca
Date: Fri Jun 2 00:44:04 2017
New Revision: 74742
URL:
http://svn.reactos.org/svn/reactos?rev=74742&view=rev
Log:
[USETUP]: Creating a registry key with zero access is just plainly invalid. Fix it. It was
not caught before because, we never ever booted a 1st-stage setup with a valid mounted
existing SYSTEM key (as Windows does).
Modified:
trunk/reactos/base/setup/usetup/interface/devinst.c
Modified: trunk/reactos/base/setup/usetup/interface/devinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/devinst.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/interface/devinst.c [iso-8859-1] Fri Jun 2 00:44:04
2017
@@ -341,7 +341,7 @@
}
InitializeObjectAttributes(&ObjectAttributes, &ServicesU,
OBJ_CASE_INSENSITIVE, NULL, NULL);
- Status = NtCreateKey(&hServices, 0, &ObjectAttributes, 0, NULL, 0, NULL);
+ Status = NtCreateKey(&hServices, KEY_ALL_ACCESS, &ObjectAttributes, 0, NULL,
0, NULL);
if (!NT_SUCCESS(Status))
{
DPRINT1("NtCreateKey('%wZ') failed with status 0x%08lx\n",
&ServicesU, Status);