[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:
Hermès Bélusca-Maïto 2017-06-02 00:44:04 +00:00
parent cead3c26ac
commit 0f80ead8ec

View file

@ -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);