Author: dgorbachev
Date: Sun Jun 3 01:20:12 2007
New Revision: 26970
URL:
http://svn.reactos.org/svn/reactos?rev=26970&view=rev
Log:
- Fix LiveCD boot error.
- Remove MPW thread hack.
Modified:
trunk/reactos/ntoskrnl/config/cmsysini.c
trunk/reactos/ntoskrnl/mm/mminit.c
Modified: trunk/reactos/ntoskrnl/config/cmsysini.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmsysini.c…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmsysini.c (original)
+++ trunk/reactos/ntoskrnl/config/cmsysini.c Sun Jun 3 01:20:12 2007
@@ -250,17 +250,27 @@
OBJ_CASE_INSENSITIVE,
NULL,
NULL);
- 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 */
- ASSERT(Disposition == REG_CREATED_NEW_KEY);
+
+ /* The key has been created by mkhive */
+ if ((CmpMiniNTBoot) && (CmpShareSystemHives))
+ {
+ Status = NtOpenKey(&KeyHandle, KEY_READ | KEY_WRITE, &ObjectAttributes);
+ if (!NT_SUCCESS(Status)) return Status;
+ }
+ else
+ {
+ 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 */
+ ASSERT(Disposition == REG_CREATED_NEW_KEY);
+ }
/* Initialize the symbolic link name */
sprintf(Buffer,
Modified: trunk/reactos/ntoskrnl/mm/mminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/mminit.c?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/mminit.c (original)
+++ trunk/reactos/ntoskrnl/mm/mminit.c Sun Jun 3 01:20:12 2007
@@ -516,7 +516,7 @@
/*
* Initialise the modified page writer.
*/
- if (!strstr(LoaderBlock->LoadOptions, "MININT")) MmInitMpwThread();
+ MmInitMpwThread();
/* Initialize the balance set manager */
MmInitBsmThread();