From c2f58cd197761ca84bac8159fc7c44dc9b3789d6 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 31 Jan 2007 22:30:59 +0000 Subject: [PATCH] - Comment out clearing of KeLoaderBlock (introduced by 25629), because it looks like someone is still calling IopLoadServiceModule() even after that point. 2nd stage boots with this change. svn path=/trunk/; revision=25667 --- reactos/ntoskrnl/ex/init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ex/init.c b/reactos/ntoskrnl/ex/init.c index ac0d8c453ae..6f970145d25 100644 --- a/reactos/ntoskrnl/ex/init.c +++ b/reactos/ntoskrnl/ex/init.c @@ -1186,7 +1186,10 @@ Phase1InitializationDiscard(PVOID Context) InbvUpdateProgressBar(85); /* Make sure nobody touches the loader block again */ - if (LoaderBlock == KeLoaderBlock) KeLoaderBlock = NULL; + /* FIXME: IopLoadServiceModule() touches KeLoaderBlock->LoadOrderListHead, + and that happens past this point too. So either copy that list to the + Io's allocated space, or properly fix Io. */ + //if (LoaderBlock == KeLoaderBlock) KeLoaderBlock = NULL; LoaderBlock = Context = NULL; /* Update progress bar */