From: Aleksey Bragin Date: Fri, 13 Aug 2010 22:02:17 +0000 (+0000) Subject: [WINLOGON] X-Git-Tag: ReactOS-0.3.12~181 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=0be662421f39f7e9dd515c16ac43fda12dea6e1e;hp=e68f31b46ad43d2cc73f436e3350638aee478159 [WINLOGON] - NtInitializeRegistry expects not just CM_BOOT_FLAG_ACCEPTED, but a number of the accepted control set to be added to it. After fixing this, NtInitializeRegistry won't fail with STATUS_INVALID_PARAMETER (someone should check return status for errors...) anymore. As a result lazy flushing is enabled. svn path=/trunk/; revision=48536 --- diff --git a/reactos/base/system/winlogon/winlogon.c b/reactos/base/system/winlogon/winlogon.c index f711cf38085..3329848b6ae 100644 --- a/reactos/base/system/winlogon/winlogon.c +++ b/reactos/base/system/winlogon/winlogon.c @@ -415,7 +415,7 @@ WinMain( /* Tell kernel that CurrentControlSet is good (needed * to support Last good known configuration boot) */ - NtInitializeRegistry(CM_BOOT_FLAG_ACCEPTED); + NtInitializeRegistry(CM_BOOT_FLAG_ACCEPTED | 1); /* Message loop for the SAS window */ while (GetMessageW(&Msg, WLSession->SASWindow, 0, 0))