- Remove corresponding kernel hack.

svn path=/trunk/; revision=26984
This commit is contained in:
Dmitry Gorbachev 2007-06-03 22:12:28 +00:00
parent caa2fdd5fa
commit eb63aa49cc

View file

@ -251,26 +251,17 @@ CmpCreateControlSet(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
NULL, NULL,
NULL); NULL);
/* The key has been created by mkhive */ Status = NtCreateKey(&KeyHandle,
if ((CmpMiniNTBoot) && (CmpShareSystemHives)) KEY_CREATE_LINK,
{ &ObjectAttributes,
Status = NtOpenKey(&KeyHandle, KEY_READ | KEY_WRITE, &ObjectAttributes); 0,
if (!NT_SUCCESS(Status)) return Status; NULL,
} REG_OPTION_VOLATILE | REG_OPTION_CREATE_LINK,
else &Disposition);
{ if (!NT_SUCCESS(Status)) return Status;
Status = NtCreateKey(&KeyHandle,
KEY_CREATE_LINK,
&ObjectAttributes,
0,
NULL,
REG_OPTION_VOLATILE | REG_OPTION_CREATE_LINK,
&Disposition);
if (!NT_SUCCESS(Status)) return Status;
/* Sanity check */ /* Sanity check */
ASSERT(Disposition == REG_CREATED_NEW_KEY); ASSERT(Disposition == REG_CREATED_NEW_KEY);
}
/* Initialize the symbolic link name */ /* Initialize the symbolic link name */
sprintf(Buffer, sprintf(Buffer,