mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
[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).
svn path=/trunk/; revision=74742
This commit is contained in:
parent
cead3c26ac
commit
0f80ead8ec
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ EventThread(IN LPVOID lpParameter)
|
||||||
}
|
}
|
||||||
|
|
||||||
InitializeObjectAttributes(&ObjectAttributes, &ServicesU, OBJ_CASE_INSENSITIVE, NULL, NULL);
|
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))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("NtCreateKey('%wZ') failed with status 0x%08lx\n", &ServicesU, Status);
|
DPRINT1("NtCreateKey('%wZ') failed with status 0x%08lx\n", &ServicesU, Status);
|
||||||
|
|
Loading…
Reference in a new issue