From f9d7f36bfefcec807d80a11dea07c3c08ee7c0bb Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 19 Oct 2003 17:33:54 +0000 Subject: [PATCH] Initialize section object type after the object manager types have been initalized. svn path=/trunk/; revision=6376 --- reactos/ntoskrnl/ke/main.c | 5 +++-- reactos/ntoskrnl/mm/section.c | 4 +++- reactos/ntoskrnl/ob/namespc.c | 5 +---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/ke/main.c b/reactos/ntoskrnl/ke/main.c index 9d6fb398468..ceb90d06d5b 100644 --- a/reactos/ntoskrnl/ke/main.c +++ b/reactos/ntoskrnl/ke/main.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: main.c,v 1.176 2003/10/16 14:47:30 ekohl Exp $ +/* $Id: main.c,v 1.177 2003/10/19 17:33:11 ekohl Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/ke/main.c @@ -445,7 +445,6 @@ ExpInitializeExecutive(VOID) */ KdInitSystem (0, (PLOADER_PARAMETER_BLOCK)&KeLoaderBlock); - MmInit2(); KeInit2(); KeLowerIrql(PASSIVE_LEVEL); @@ -455,6 +454,8 @@ ExpInitializeExecutive(VOID) ObInit(); + MmInit2(); + if (!SeInit2()) KEBUGCHECK(SECURITY1_INITIALIZATION_FAILED); diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 12f7020d8e6..d9c93a7ad9b 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: section.c,v 1.131 2003/10/18 09:35:11 hbirr Exp $ +/* $Id: section.c,v 1.132 2003/10/19 17:33:32 ekohl Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/mm/section.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -2169,6 +2170,7 @@ MmInitSectionImplementation(VOID) * the object manager it not initialized yet! * The section object type will be created in ObInit(). */ + ObpCreateTypeObject(MmSectionObjectType); return(STATUS_SUCCESS); } diff --git a/reactos/ntoskrnl/ob/namespc.c b/reactos/ntoskrnl/ob/namespc.c index ecf79235db3..f6ad86b1ec4 100644 --- a/reactos/ntoskrnl/ob/namespc.c +++ b/reactos/ntoskrnl/ob/namespc.c @@ -1,4 +1,4 @@ -/* $Id: namespc.c,v 1.42 2003/10/12 17:05:48 hbirr Exp $ +/* $Id: namespc.c,v 1.43 2003/10/19 17:33:54 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -432,9 +432,6 @@ ObInit(VOID) /* Create 'symbolic link' object type */ ObInitSymbolicLinkImplementation(); - - /* Create 'section' object type */ - ObpCreateTypeObject(MmSectionObjectType); }